Module: JobIteration::Iteration

Extended by:
ActiveSupport::Concern
Defined in:
lib/job-iteration/iteration.rb

Defined Under Namespace

Modules: ClassMethods Classes: CursorError

Instance Method Summary collapse

Instance Method Details

#initialize(*arguments) ⇒ Object


69
70
71
72
73
74
# File 'lib/job-iteration/iteration.rb', line 69

def initialize(*arguments)
  super
  self.times_interrupted = 0
  self.total_time = 0.0
  assert_implements_methods!
end

#retry_jobObject


96
97
98
99
# File 'lib/job-iteration/iteration.rb', line 96

def retry_job(*, **)
  super unless defined?(@retried) && @retried
  @retried = true
end