Module: Sidekiq::Retry
- Included in:
- Middleware::Server::RetryJobs
- Defined in:
- lib/sidekiq/retry.rb
Overview
Sidekiq’s retry support assumes a typical development lifecycle:
-
push some code changes with a bug in it
-
bug causes message processing to fail, sidekiq’s middleware captures the message and pushes it onto a retry queue
-
sidekiq retries messages in the retry queue multiple times with an exponential delay, the message continues to fail
-
after a few days, a developer deploys a fix. the message is reprocessed successfully.
-
if 3 never happens, sidekiq will eventually give up and throw the message away.
Defined Under Namespace
Classes: Poller
Constant Summary collapse
- MAX_COUNT =
delayed_job uses the same basic formula
25
- DELAY =
proc { |count| (count ** 4) + 15 }
- POLL_INTERVAL =
15