lib/backburner/worker.rb in backburner-allq-1.0.22 vs lib/backburner/worker.rb in backburner-allq-1.0.23
- old
+ new
@@ -171,9 +171,11 @@
end
self.log_job_end(job.name, "#{retry_status}, retrying in #{delay}s") if job_started_at
handle_error(e, job.name, job.args, job)
end
+ else
+ sleep(rand*3)
end
job
end