lib/resque/plugins/exponential_backoff.rb
# Selects the delay from the backoff strategy
#
# @return [Number] seconds to delay until the next retry.
#
# @api private
Selects the delay from the backoff strategy
Selects the delay from the backoff strategy
def retry_delay
        delay = backoff_strategy[retry_attempt] || backoff_strategy.last
        if add_random_quotient?
          delay = (delay * (Random.rand(random_quotient_range.to_i * 10) + 10) / 10.0).to_i
        end
        delay
      end
def retry_delay delay = backoff_strategy [ retry_attempt ] || backoff_strategy . last if add_random_quotient? delay = ( delay * ( Random . rand ( random_quotient_range . to_i * 10 ) + 10 ) / 10.0 ) . to_i end delay end
Selects the delay from the backoff strategy
Selects the delay from the backoff strategy
# If we are adding some randomness to the delay value, multiply the value by some float between # [1.0, random_quotient_range]
seconds to delay until the next retry.
seconds to delay until the next retry .
Number
api
None