exponential_backoff.rb 205 B

1234567891011
  1. # frozen_string_literal: true
  2. module ExponentialBackoff
  3. extend ActiveSupport::Concern
  4. included do
  5. sidekiq_retry_in do |count|
  6. 15 + 10 * (count**4) + rand(10 * (count**4))
  7. end
  8. end
  9. end