nesquena / backburner

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

Add hooks on retrying and burying #104

Closed contentfree closed 9 years ago

contentfree commented 9 years ago

This satisfies #97 as well as adding hooks anytime the job is released for retry.

It adds hooks for :on_retry and :on_bury. on_retry will pass the retry count (inclusive of this attempt) and the delay as well as all of the rest of the job's args. on_bury passes the job's args as usual without anything extra.

nesquena commented 9 years ago

Thanks! Can you add to the README capturing this feature?