Closed alansaviolobo closed 3 months ago
another issue is that all my jobs appear to get burried and not deleted.
In your code, my guess is that the exception is thrown and the traceroute bubbles up to this line? Can you confirm?
$job = $Job_Queue->getNextJobAndReserve();
Ping
Ping
apologies. yes. the catch was causing the jobs to be buried which was creating a huge backlog. have replaced the line with a $Job_Queue->deleteJob($job); since the job is redundant if not run immediately.
Cool cool, glad it's fixed!
I came across a situation where the db connection would break and that exception/error would cause the worker to crash. to over come that, I have a situation involving a loop inside a loop. its a bit wierd so wanted a second opinion on the same.
the example worker script would also have to be updated accordingly