This document describes an older version of Celery (2.1). For the latest stable version please go here.
Apply the task locally.
Parameters: | throw – Re-raise task exceptions. Defaults to the CELERY_EAGER_PROPAGATES_EXCEPTIONS setting. |
---|
This will block until the task completes, and returns a celery.result.EagerResult instance.
Run a task asynchronously by the celery daemon(s).
Parameters: |
|
---|
Note: If the CELERY_ALWAYS_EAGER setting is set, it will be replaced by a local apply() call instead.
Delay a task for execution by the celery daemon.
Parameters: |
|
---|---|
Raises celery.exceptions.NotRegistered: | |
exception if no such task has been registered in the task registry. |
:returns celery.result.AsyncResult:
Example
>>> r = delay_task("update_record", name="George Costanza", age=32)
>>> r.ready()
True
>>> r.result
"Record was updated"
Send task by name.
Useful if you don’t have access to the Task class.
Parameters: | name – Name of task to execute. |
---|
Supports the same arguments as apply_async().