Answer the question
In order to leave comments, you need to log in
How to restore the php artisan queue:work (SHOCK) command to work?
Colleagues, welcome!
The php artisan queue:work command has stopped working. 0_0!?
Everything worked perfectly and perfectly for me ... then at some point I decided to remove the "extra" processes in centos, which loaded the RAM, which was already giving out-of-memory errors.
I had a whole bunch of php artisan queue:work running, but I killed them manually via $kill xxx
I discovered the problem only a few days later, by that time I had already rebooted the server .. and reinstalled the supervisor, so I can tell exactly where and when exactly I broke - it's hard.
I have more than 300 tasks in the queue. Uses the built-in database queue from the Laravel box.
And when I execute the command in the console "php artisan queue:work" - nothing happens! The queue is not running!
Through the supervisor it is similar, he just calls this command, which has stopped working.
artisan itself works correctly. No more bugs were noticed. Only the queue does not start in any way.
What do you think about this? Why could this happen? And how can this be fixed?
-------------------------------------------------- --------
UPD: My first task in the queue reached the number of attempts 255, although there was a limit - a maximum of 3 attempts. I removed it. And the team worked.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question