I have a queuing system with my workers written in Laravel 4.2. I am getting a JOB_ID not found exception whenever artisan tries to get the next ready job in queue.
Investigating I noticed the following:
If the next ready Job has ID = 74, when I run artisan queue:work, it tries to pick up the next ready Job with ID 73 instead of 74 resulting in the JOB_ID not found exception.
I have restarted beanstalkd several time but issue persist. I have also checked the TTR for each job and set it to 3600 but still no luck.
Anyone experienced this before? Drilling down the Beanstalk PDA library, i noticed this happens when the ReleaseCommand class calls its dispatch method.
Anyone experienced this? What could possibly cause this? Thanks in advance.
Without proper code and even with code it's difficult to locate such a problem. But we had in past, and I can explain how should work, and when would that Exception gets thrown.
So the worker, does a reserve for a job, and holds until it does it's work, or the beanstalkd server takes it back.
urgent jobs
, as that is different from ready
state jobs.