mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
1885fcf5db
According to [wiki](https://github.com/mperham/sidekiq/wiki/Error-Handling). The return value of the block must be an integer. However many users like to use 1.hour / 2.days / 34.seconds syntax from `Activesupport::Duration`. All Activesupport::Duration instances can be mapped to integer with `to_i` method. Lets map it than! ``` # The current retry count is yielded. The return value of the block must be # an integer. It is used as the delay, in seconds. sidekiq_retry_in do |count| 10 * (count + 1) # (i.e. 10, 20, 30, 40) end ``` |
||
---|---|---|
.. | ||
server | ||
chain.rb | ||
i18n.rb |