app/models/async_job.rb
#
# Advances the job to the next step
#
Advances the job to the next step
Advances the job to the next step
def current_step_done!
    return if finished?
    self.last_completed_step = current_step_index
    job_succeeded if done_all_steps? && !failed?
    save!
  end
def current_step_done! return if finished? self . last_completed_step = current_step_index job_succeeded if done_all_steps? && ! failed? save! end
Advances the job to the next step
Advances the job to the next step