This document describes an older version of Celery (2.2). For the latest stable version please go here.
Base class for worker state elements.
Hartbeat expiry time in seconds. The worker will be considered offline if no heartbeat is received within this time. Default is 2:30 minutes.
Records clusters state.
Returns a list of (seemingly) alive workers.
Get or create task by uuid.
Get or create worker by hostname.
Process task event.
Returns a list of all seen task types.
Get tasks by timestamp.
Returns a list of (uuid, task) tuples.
Get all tasks by type.
Returns a list of (uuid, task) tuples.
Get all tasks by worker.
Returns a list of (uuid, task) tuples.
Process worker event.
Task State.
Information about this task suitable for on-screen display.
Merge with out of order event.
How to merge out of order events. Disorder is detected by logical ordering (e.g. task-received must have happened before a task-failed event).
A merge rule consists of a state and a list of fields to keep from that state. (RECEIVED, ("name", "args"), means the name and args fields are always taken from the RECEIVED state, and any values for these fields received before or after is simply ignored.
Callback for the task-failed event.
Callback for the task-received event.
Callback for the task-retried event.
Callback for the task-revoked event.
Callback for the task-sent event.
Callback for the task-started event.
Callback for the task-succeeded event.
Update state from new event.
Parameters: |
|
---|
Worker State.
Callback for the worker-heartbeat event.
Callback for the worker-offline event.
Callback for the worker-online event.