beanstalkd

How to move a beanstalkd job in the ready queue to the front if the queue is very big and is taking a while to process?


I had a quick question in regards to a beanstalkd queue.

So say I have 500,000 ready jobs in the beanstalk queue which are just waiting be processed and at the same time more jobs are being added to this queue. All of these jobs have the same priority.

Is it possible to move a job in the ready queue so that it can be processed before all of the other jobs in that queue?

I've just started using beanstalk and I was wondering whether this is possible to do in beanstalk?

I'm on a linux environment.

I guess I could delete that specific job and reinsert it with a priority that will allow it to be processed first but I would like to avoid doing that yet unless there is a command that will allow me to do that.

Please let me know if more information is required and I thank you in advance for your help. :)


Solution

  • There is no such command currently in Beanstalkd.

    This is what different priorities are used for.