Laravel - Queues - Queue Workers And Deployment
Since queue workers are long-lived processes, they will not notice changes to your code without being restarted. So, the simplest way to deploy an application using queue workers is to restart the workers during your deployment process. You may gracefully restart all of the workers by issuing the
php artisan queue:restart
This command will instruct all queue workers to gracefully exit after they finish processing their current job so that no existing jobs are lost. Since the queue workers will exit when the
queue:restart command is executed, you should be running a process manager such as Supervisor to automatically restart the queue workers.
The queue uses the cache to store restart signals, so you should verify that a cache driver is properly configured for your application before using this feature.