Skip to content

Commit

Permalink
Merge pull request sidekiq#2544 from Bartuz/patch-1
Browse files Browse the repository at this point in the history
Map retry_in period to integer
  • Loading branch information
mperham committed Sep 9, 2015
2 parents 4154091 + 1885fcf commit 69132cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/middleware/server/retry_jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def seconds_to_delay(count)

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
Expand Down

0 comments on commit 69132cc

Please sign in to comment.