I’m setting up a worker in an App Platform app which is hosting a Laravel app. The worker container is going to be running php artisan queue:work
as its foreground process.
My question is: What would happen to the queue worker container when the app is deployed and all the containers are restarted? Would the worker container also be restarted? If so, is there a way to cause the deployment to wait for the worker to finish processing the queue and exit gracefully?