lundi 4 septembre 2017

How to limit Laravel queue work to one execution end exit?

For testing purposes, I'm queuing jobs in a queue. And I have opened on another side a command line where I execute:

php artisan queue:work

The above command keeps listening and running on the terminal until I manually kill it.

Since I'm testing singularly Jobs from the queue. It would be very nice to have the command to execute one ore more entries and exit instead of being executed as a daemon and have to kill it somehow...

Aucun commentaire:

Enregistrer un commentaire