Module: ActiveJobMetadata::Lifecycle

Extended by:
ActiveSupport::Concern
Includes:
Metadata
Included in:
All
Defined in:
lib/active_job_metadata/lifecycle.rb

Overview

Use Lifecyle to track the current status of your job.

Jobs travel through the following states:

ENQUEUED -> RUNNING -> DONE
                   '-> FAILED

The current state of the job is available via the status accessor.

Note that a job does not have any status until it is enqueued. You can of course set the status manually if needed.

Constant Summary collapse

ENQUEUED =
"enqueued"
RUNNING =
"running"
DONE =
"done"
FAILED =
"failed"

Method Summary

Methods included from Metadata

#metadata, #metadata=, #save_metadata