This document describes Celery 2.4. For development docs, go here.

celery.states

Built-in Task States.

Sets

READY_STATES

Set of states meaning the task result is ready (has been executed).

UNREADY_STATES

Set of states meaning the task result is not ready (has not been executed).

EXCEPTION_STATES

Set of states meaning the task returned an exception.

PROPAGATE_STATES

Set of exception states that should propagate exceptions to the user.

ALL_STATES

Set of all possible states.

Misc.

celery.states.PRECEDENCE = ['SUCCESS', 'FAILURE', None, 'REVOKED', 'STARTED', 'RECEIVED', 'RETRY', 'PENDING']

State precedence. None represents the precedence of an unknown state. Lower index means higher precedence.

celery.states.precedence(state)

Get the precedence index for state.

Lower index means higher precedence.

class celery.states.state

State is a subclass of str, implementing comparison methods adhering to state precedence rules.