Understanding the Behaviour of Queue Workers when Restarted on Deployment in App Platform

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?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!