class Rekiq::Configuration

Attributes

schedule_expired[RW]
schedule_post_work[RW]
work_time_shift[RW]
work_time_tolerance[RW]

Public Class Methods

new() click to toggle source
# File lib/rekiq/configuration.rb, line 15
def initialize
  # indicates if next work is scheduled after or before the worker completes
  # this is relevant when we want to guarantee that workers do not run in paralel
  # type bool, default false
  @schedule_post_work = false

  # indicates a shift, in seconds, to apply to event time returned from schedule
  # to calculate the work_time
  # type int, default 0
  @work_time_shift = 0

  # indicates the tolerance, in seconds, for work_time relative to current time
  # type int (value greater than or equal to 0), default 0
  @work_time_tolerance = 0

  # indicates if expired work_times are to be scheduled
  # a work_time is considered expired when it's before current time minus
  # work_time_tolerance
  # type bool, default false
  @schedule_expired = false
end