spec/dummy/app/models/async_job.rb
#
# Finishes the job as poison. Returns true.
#
Finishes the job as poison. Returns true.
Finishes the job as poison . Returns true .
def job_is_poison
    self.finished_at = Time.now.utc
    self.poison = true
    self.failed = true
    save!
    Rails.logger.error "[Job #{uuid}] is poison (#{steps.length} steps)."
    true
  end
def job_is_poison self . finished_at = Time . now . utc self . poison = true self . failed = true save! Rails . logger . error "[Job #{uuid}] is poison (#{steps.length} steps)." true end
Finishes the job as poison.
Finishes the job as poison .