Restart policy for individual container

Is it possible to set container restart policy on every individual container? We have a use case where such container calls the app container, perform some api testing and finished. When the container finishes, kubernetes tries to restart as it assumes that container is exited. I understand that current restartPolicy applies to all containers in the Pod. Are there any workarounds/alternate approaches

The workaround is to finish but don’t exit. E.g. wrap it in a shell script that calls sleep inf or something.