Sha256: 03ec7b29a2bc95e1975a24dcd9abf5a565a8294504504c0e302e2913fe7fd69b
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
module Rekiq class Configuration attr_accessor :reschedule_post_work, :schedule_expired, :expiration_margin def initialize # if work is rescheduled after or before the worker completes self.reschedule_post_work = false # if expired works are to be scheduled # an expired work is a work that has a time bellow current_time - margin self.schedule_expired = false # indicates the margin after which a work is considered expired # default to 0 self.expiration_margin = 0 end end class << self def configure yield configuration end def configuration @configuration ||= Configuration.new end def reset_configuration @configuration = Configuration.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rekiq-0.0.1 | lib/rekiq/configuration.rb |