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



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

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



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

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

#method_added(method_name) ⇒ Object



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

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

  super
end