Job state
Owner side
- An owner creates a job with an execute message, conditions, and a reward. Upon successful creation, the job enters the
Pending
status. - While in the
Pending
state, an owner can update a job's message or increase the reward amount of the job. - Owners can also delete a job while in the
Pending
state. When a job is deleted, its state becomesCancelled
.
Keeper side
- A keeper can attempt to execute any job with a
Pending
status if they believe the job's conditions have been met. - If the job's conditions aren't yet met, the job remains in the queue, and its status is unchanged.
- Jobs only remain active in the queue based on their duration, which is specified during job creation. Job duration is a variable in fee estimation. When a job's duration runs out, it is
Evicted
. - If a job fails during execution, its status becomes
Failed
. - If the job's conditions are met, the job's execute message gets sent, and the rewards included for executing the job are sent to the keeper. The job's status becomes
Executed
.
Owner side
- An owner creates a job with an execute message, conditions, and a reward. Upon successful creation, the job enters the
Pending
status. - While in the
Pending
state, an owner can update a job's message or increase the reward amount of the job. - Owners can also delete a job while in the
Pending
state. When a job is deleted, its state becomesCancelled
.
Keeper side
- A keeper can attempt to execute any job with a
Pending
status if they believe the job's conditions have been met. - If the job's conditions aren't yet met, the job remains in the queue, and its status is unchanged.
- Jobs only remain active in the queue based on their duration, which is specified during job creation. Job duration is a variable in fee estimation. When a job's duration runs out, it is
Evicted
. - If a job fails during execution, its status becomes
Failed
. - If the job's conditions are met, the job's execute message gets sent, and the rewards included for executing the job are sent to the keeper. The job's status becomes
Executed
.