v2.0.0
·
199 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
- Require ruby 2.0+.
- Time intervals default to randomized exponential backoff instead of fixed time intervals. The delay between retries grows with every attempt and there's a randomization factor added to each attempt.
base_interval,max_interval,rand_factor, andmultiplierare new arguments that are used to generate randomized exponential back off time intervals.intervalargument removed.- Accept
intervalsarray argument to provide your own custom intervals. - Allow configurable defaults via
Retriable#configureblock. - Add ability for
:onargument to accept aHashwhere the keys are exception types and the values are a single or array ofRegexppattern(s) to match against exception messages for retrial. - Raise, not return, on max elapsed time.
- Check for elapsed time after next interval is calculated and it goes over the max elapsed time.
- Support early termination via
max_elapsed_timeargument.