Built-in Celery task states and precedence rules (ported from celery.states).
Summary
Functions
Set of all built-in task states.
Returns true if state1 can overwrite state2 according to Celery state precedence.
Returns true if state is in exception_states().
Set of states meaning the task raised an exception (RETRY, FAILURE, REVOKED).
Task failed.
Task was ignored.
Task state is unknown (assumed pending since you know the id).
Returns the precedence index for a task state. Lower index means higher precedence.
Returns true if state is in propagate_states().
Set of states meaning the exception should propagate to the caller (FAILURE, REVOKED).
Returns true if state is in ready_states().
Set of states meaning the task result is ready (SUCCESS, FAILURE, REVOKED).
Task was received by a worker (only used in events).
Task was rejected.
Task is waiting for retry.
Task was revoked.
Task was started by a worker (task_track_started enabled).
Task succeeded.
Returns true if state is in unready_states().
Set of states meaning the task result is not yet ready.
Functions
Set of all built-in task states.
Returns true if state1 can overwrite state2 according to Celery state precedence.
Returns true if state is in exception_states().
Set of states meaning the task raised an exception (RETRY, FAILURE, REVOKED).
Task failed.
Task was ignored.
Task state is unknown (assumed pending since you know the id).
@spec precedence(String.t() | nil) :: non_neg_integer()
Returns the precedence index for a task state. Lower index means higher precedence.
Returns true if state is in propagate_states().
Set of states meaning the exception should propagate to the caller (FAILURE, REVOKED).
Returns true if state is in ready_states().
Set of states meaning the task result is ready (SUCCESS, FAILURE, REVOKED).
Task was received by a worker (only used in events).
Task was rejected.
Task is waiting for retry.
Task was revoked.
Task was started by a worker (task_track_started enabled).
Task succeeded.
Returns true if state is in unready_states().
Set of states meaning the task result is not yet ready.