mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
rename method
This commit is contained in:
parent
a6270c6350
commit
2fc1d81cc9
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ module Sidekiq
|
|||
retry_count += 1
|
||||
if retry_count <= max_retries
|
||||
Sidekiq.logger.debug {"Suppressing and retrying error: #{e.inspect}"}
|
||||
sleep_retry_count(retry_count)
|
||||
pause_for_recovery(retry_count)
|
||||
retry
|
||||
else
|
||||
handle_exception(e, { :message => "Exhausted #{max_retries} retries"})
|
||||
|
@ -148,7 +148,7 @@ module Sidekiq
|
|||
end
|
||||
end
|
||||
|
||||
def sleep_retry_count(retry_count)
|
||||
def pause_for_recovery(retry_count)
|
||||
sleep(retry_count)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue