Jobs Executable by the Worker Server.
Class wrapping a task to be run.
Parameters: |
---|
Execute the task in a jail() and store return value and status in the task meta backend.
Parameters: |
|
---|
Like execute(), but using the multiprocessing pool.
Parameters: |
|
---|
:returns multiprocessing.AsyncResult instance.
Extend the tasks keyword arguments with standard task arguments.
These are logfile, loglevel, task_id and task_name.
Create a TaskWrapper from a task message sent by celery.messaging.TaskPublisher.
Raises UnknownTaskError: | |
---|---|
if the message does not describe a task, the message is also rejected. | |
Returns: | TaskWrapper instance. |
Wraps the task in a jail, which catches all exceptions, and saves the status and result of the task execution to the task meta backend.
If the call was successful, it saves the result to the task result backend, and sets the task status to "DONE".
If the call raises celery.task.base.RetryTaskError, it extracts the original exception, uses that as the result and sets the task status to "RETRY".
If the call results in an exception, it saves the exception as the task result, and sets the task status to "FAILURE".
Parameters: |
|
---|---|
Returns: | the function return value on success, or the exception instance on failure. |