Module: SidekiqIteration::Iteration::ClassMethods

Defined in:
lib/sidekiq_iteration/iteration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#max_job_runtimeObject



47
48
49
50
51
52
53
# File 'lib/sidekiq_iteration/iteration.rb', line 47

def max_job_runtime
  if defined?(@max_job_runtime)
    @max_job_runtime
  else
    SidekiqIteration.max_job_runtime
  end
end

Instance Method Details

#inherited(base) ⇒ Object



32
33
34
35
# File 'lib/sidekiq_iteration/iteration.rb', line 32

def inherited(base)
  base.throttle_conditions = throttle_conditions.dup
  super
end

#method_added(method_name) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/sidekiq_iteration/iteration.rb', line 37

def method_added(method_name)
  if method_name == :perform
    raise "Job that is using Iteration cannot redefine #perform"
  end

  super
end