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

samio's avatar
Level 1

Laravel queue dosen't work if I make changes

Hi ,

I use laravel queues and sometimes I found it dosn't work , so I go to forge.laravel.io and restart it again . then it works fine.

I don't know what is the reason , maybe it because I deploy a new commit (by envoyer.io).

what is the advice to control and monitor queues jobs

I use database as drive for queue.

any advices for using queue

0 likes
2 replies
gborcherds's avatar
Level 4

HI @majeed

Easy fix here. In forge when you setup your worker, run it as a daemon.

Step 2 in envoyer, install a deployment hook that runs after activate new release with the following code in it.

cd {{release}}
php artisan queue:restart

That should automatically restart your worker using the latest code base as it definitely gets messed up during envoyer deployment.

1 like

Please or to participate in this conversation.