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

Daniel-Pablo's avatar

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

0 likes
4 replies
sidneygijzen's avatar

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).

Daniel-Pablo's avatar

@sidneygijzen thanks fo your reply, I am tying to get the most real like if the code is live on the server, that why am with queues and redis,

AM Checking all is woking good before deploy on the server, so how to reload it on the way

thanks a lot

Snapey's avatar
Snapey
Best Answer
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.