app/models/async_job.rb
#
# Finishes the job as failed. Returns true.
#
Finishes the job as failed. Returns true.
Finishes the job as failed . Returns true .
def job_failed(str=nil)
    self.finished_at = Time.now.utc
    self.failed = true
    save!
    log(str) if str
    Rails.logger.warn "[Job #{uuid}] failed: '#{str}' (#{steps.length} steps)."
    true
  end
def job_failed ( str = nil ) self . finished_at = Time . now . utc self . failed = true save! log ( str ) if str Rails . logger . warn "[Job #{uuid}] failed: '#{str}' (#{steps.length} steps)." true end
Finishes the job as failed.
Finishes the job as failed .
str