celery.states

    See .

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

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

    Set of states meaning the task returned an exception.

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

    Set of all possible states.

    celery.states.PENDING = ‘PENDING’

    Task state is unknown (assumed pending since you know the id).

    Task was received by a worker.

    celery.states.STARTED = ‘STARTED’

    Task was started by a worker (CELERY_TRACK_STARTED).

    celery.states.SUCCESS = ‘SUCCESS’

    Task succeeded

    celery.states.FAILURE = ‘FAILURE’

    Task failed

    celery.states.REVOKED = ‘REVOKED’

    celery.states.RETRY = ‘RETRY’

    Task is waiting for retry.

    celery.states.precedence(state)

    Get the precedence index for state.

    Lower index means higher precedence.

    class celery.states.state[源代码]

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

    Any custom state is considered to be lower than FAILURE and , but higher than any of the other built-in states: