This document describes an older version of Celery (2.2). For the latest stable version please go here.

celery.states

Built-in Task States.

copyright:
  1. 2009 - 2011 by Ask Solem.
license:

BSD, see LICENSE for more details.

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.

Previous topic

celery.registry

Next topic

celery.contrib.abortable

This Page