mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #2544 from Bartuz/patch-1
Map retry_in period to integer
This commit is contained in:
commit
69132ccd2c
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ module Sidekiq
|
|||
|
||||
def retry_in(worker, count)
|
||||
begin
|
||||
worker.sidekiq_retry_in_block.call(count)
|
||||
worker.sidekiq_retry_in_block.call(count).to_i
|
||||
rescue Exception => e
|
||||
handle_exception(e, { context: "Failure scheduling retry using the defined `sidekiq_retry_in` in #{worker.class.name}, falling back to default" })
|
||||
nil
|
||||
|
|
Loading…
Add table
Reference in a new issue