Closed contentfree closed 9 years ago
This is my own fault for taking a little while to merge this, but could you rebase your branch against latest master. I will merge this in and be cutting a new backburner release soon.
Rebased to master and added an example to the README.
Merged, thanks
I wanted to have exponential back-off in Backburner and looking through the code I found the hidden (and unconfigurable) exponential back-off used when calculating delay times (and I learned that
retry_delay
is actually just the minimum retry delay).So I made the retry delay calculation a configurable lambda. This also allows you to use just the configured
retry_delay
withlambda { |retry_delay, _| retry_delay }
It defaults to what the code does today and should be backwards compatible. It has test coverage (and I updated the README, too).