nesquena / backburner

Simple and reliable beanstalkd job queue for ruby
http://nesquena.github.com/backburner
MIT License
430 stars 70 forks source link

Retry jobs without logging an error #159

Closed eltone closed 6 years ago

eltone commented 6 years ago

Sometimes jobs have known/expected failure scenarios. For example a data race in a dependency or some kind of CAS system where many writers are trying to update a record. This PR adds a new Error type: Backburner::Job::RetryJob that is not logged by the worker when raised inside a job.

nesquena commented 6 years ago

Nice addition!