This document describes an older version of Celery (2.5). For the latest stable version please go here.
Client for worker remote control commands. Server implementation is in celery.worker.control.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
Broadcast a control command to the celery workers.
Parameters: |
|
---|
Discard all waiting tasks.
This will ignore all tasks waiting for execution, and they will be deleted from the messaging server.
Returns: | the number of tasks discarded. |
---|
Ping workers.
Returns answer from alive workers.
Parameters: |
|
---|
Set rate limit for task by type.
Parameters: |
|
---|
Revoke a task by id.
If a task is revoked, the workers will ignore the task and not execute it after all.
Parameters: |
|
---|
Set time limits for task by type.
Parameters: |
|
---|
Any additional keyword arguments are passed on to broadcast().