2 years ago

Start and stop queue

Posted 2 years ago by nam_co

Hi, hope somebody can help me, I have a Scheduled Job that puts in the DB a series of jobs/rows each morning, I use "php artisan queue:work" and it sends the emails, but it continues to run and after a while I get a 502 on the nginx server (supposed to run out of memory), since theres not going to be any more new jobs available on that day, is there a way to just run the available jobs in the DB and then stop.

"php artisan queue:work --once" only runs the first one and stops, I wonder if there something like this but that runs all jobs in the DB


Please sign in or create an account to participate in this conversation.