This document describes an older version of Celery (2.5). For the latest stable version please go here.
This module defines the Request class, which specifies how tasks are executed.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
A request for task execution.
Acknowledge task.
Format string used to log task failure.
Execute the task in a trace_task().
Parameters: |
|
---|
Like execute(), but using a worker pool.
Parameters: |
|
---|
Extend the tasks keyword arguments with standard task arguments.
Currently these are logfile, loglevel, task_id, task_name, task_retries, and delivery_info.
See celery.task.base.Task.run() for more information.
Magic keyword arguments are deprecated and will be removed in version 3.0.
Format string used to log internal error.
If expired, mark the task as revoked.
Handler called when task is accepted by worker pool.
Handler called if the task raised an exception.
Handler called if the task should be retried.
Handler called if the task was successfully processed.
Handler called if the task times out.
Format string used to log task retry.
If revoked, skip task and mark state.
Format string used to log task success.
This is a pickleable method used as a target when applying to pools.
It’s the same as:
>>> trace_task(name, *args, **kwargs)[0]