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
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.
Please or to participate in this conversation.