You can use 'releases' value got from job stats which shows number of
released performed on the given job.
My scenario is: for every job fail, release with incremented delay.
while True:
job = inQueue.reserve()
try:
performUsefulStuff(job)
except:
releases = int(job.stats()['releases'])
job.release(delay=60*releases)
There's no point in speculating about hypothetical performance
problems. If someone encounters a situation where having to call
stats-job causes trouble, we can think about how to fix it.
kr
We currently have a system that is doing about 50 jobs/sec and every one
does a stats-job after the reserve and we do not see a performance issue
Graham.
My apologies. You're right, the server doesn't include statistics in
a RESERVED response.
kr