Sha256: 5bf49072dd685dff34ba74b0291119910da3cdf99b6e6fc1be3850320a452eb1
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
module Retriable class Config attr_accessor :sleep_disabled attr_accessor :max_tries attr_accessor :base_interval attr_accessor :max_interval attr_accessor :rand_factor attr_accessor :multiplier attr_accessor :max_elapsed_time attr_accessor :timeout attr_accessor :on attr_accessor :on_retry def initialize @sleep_disabled = false @max_tries = 3 @base_interval = 0.5 @max_interval = 60 @rand_factor = 0.5 @multiplier = 1.5 @max_elapsed_time = 900 # 15 minn @timeout = nil @on = [StandardError] @on_retry = nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
retriable-2.0.0.beta2 | lib/retriable/config.rb |
retriable-2.0.0.beta1 | lib/retriable/config.rb |