Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kayintveen's avatar

Queue workers restart automatically upon deploy?

I noticed that its important to stop and restart your queue workers when the code of those queue jobs changed. Else it keeps executing old code.

(i find it a little strange but happened more then once) Does envoyer reset / restart the workers automatically upon deploy? I currently have 4 workers running simultaneously via supervisorctl. when stopping and starting i need my sudo passsword so there is no easy way to add this to the deploy scripts

0 likes
1 reply
eriktobben's avatar

I think you can run php artisan queue:restart during your deployment process.

Please or to participate in this conversation.