Queues (beanstalk) failed delayed jobs
Hi,
I am not sure if this is a Laravel thing, or a beanstalkd thing, but I thought I would post it here to see if anyone else has experienced a similar issue.
I will try to explain as best I can!
I am testing failed jobs in my queue, using beanstalkd. I am using Queue::later rather than Queue::push
I have put an error in my codeon purpose, so that the job gets put back on the queue to try again, which is does - but for whatever reason that job is scheduled way way in the future. When I view the job in beanstalk console the time-left is 18446744073706 - so it just never gets picked up again!
However, if I then push another job to the queue using Queue::later it then triggers the previous job to be run again, but then leave the new job with a similar problem.
It seems really odd, just wondered if anyone else had seen anything similar?
Hmm, I have never seen anything like that specifically, but I can say that in general Beanstalk has proven to be the most "weird" queue to work with compared to the other queues available in Laravel. Sometimes I've had strange things happen, but maybe it's just me. Maybe try Googling or the forums. Hard to tell if it's a beanstalk problem or a Pheanstalk (the library we use to work with Beanstalk) problem.
Thanks for replying Taylor, appreciate it. I will try and debug it through Pheanstalk and see if I can find the issue. I have actually decided that beanstalk doesn't quite fit my use case anyway, so am looking at either iron.io or using a specific command executed by a cron job.
Thanks again.