I’m using beanstalkc a python wrapper for the beanstalkd application.
What I’d like to do is have the producer to put some jobs(e.g: ‘a’,’b’,’c’,’d’) once and that the consumer could get the jobs continually(e.g: ‘a’,’b’,’c’,’d’,’a’,’b’,…).
In the consumer I get the jobs with job.reserve(). I thought the solution was just reserving the jobs without deleting them, but after I ran some consumer processes I got a TIMEOUT ERROR.
I’m clearly doing something wrong but I couldn’t find a way to “re-queue” the jobs the consumers use.
I think this could be a solution:
producer:
Consumer: