spec/dummy/app/models/async_job.rb
#
# Finishes the job successfully. Returns true.
#
Finishes the job successfully. Returns true.
Finishes the job successfully . Returns true .
def job_succeeded
    self.finished_at = Time.now.utc
    self.succeeded = true
    save!
    Rails.logger.info "[Job #{uuid}] succeeded (#{steps.length} steps)."
    true
  end
def job_succeeded self . finished_at = Time . now . utc self . succeeded = true save! Rails . logger . info "[Job #{uuid}] succeeded (#{steps.length} steps)." true end
Finishes the job successfully.
Finishes the job successfully .