Module: Sidekiq::Retry

Included in:
Middleware::Server::RetryJobs
Defined in:
lib/sidekiq/retry.rb

Overview

Sidekiq's retry support assumes a typical development lifecycle:

  1. push some code changes with a bug in it

  2. bug causes message processing to fail, sidekiq's middleware captures the message and pushes it onto a retry queue

  3. sidekiq retries messages in the retry queue multiple times with an exponential delay, the message continues to fail

  4. after a few days, a developer deploys a fix. the message is reprocessed successfully.

  5. 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