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.
- Evictors will collect 5% of the reward amount from the creator's Warp account balance for a job in the queue every 24 hours. If the account cannot pay, the job becomes
Evicted
, and the 5% eviction fee is taken from the reward and sent to the evictor. The rest of the reward is refunded to the creator. - 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.
- Evictors will collect 5% of the reward amount from the creator's Warp account balance for a job in the queue every 24 hours. If the account cannot pay, the job becomes
Evicted
, and the 5% eviction fee is taken from the reward and sent to the evictor. The rest of the reward is refunded to the creator. - 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
.