For debugging you can use the sync queue driver. This executes the job on the main execution thread (instead of a separate thread when using other queue drivers).
Feb 1, 2021
4
Level 12
Help reLoading queue worker
Hi, I am worrking with ShouldQueue and I am losing a lot of time erloading the worker each time I make a change on the code class that is lunching the queue.
so I got to stop the worker and then re lunch php artisan queue:worker
some tip here to AUTO REFRESH OR AUTOLOAD ON EACH CHANGE.
thanks a lot
Level 122
If you instead use php artisan queue:listen then it will notice code changes immediately.
A small gotcha, it will not notice config changes. For that you have to stop and restart.
1 like
Please or to participate in this conversation.