celery.worker
A thread that continuously checks if there are celery.task.PeriodicTask tasks waiting for execution, and executes them.
Example:
>>> PeriodicWorkController().start()
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 UnknownTask: | |
---|---|
if the message does not describe a task, the message is also rejected. | |
Returns: | TaskWrapper instance. |
Executes tasks waiting in the task queue.
Parameters: |
|
---|
Reset the AMQP connection, and reinitialize the celery.messaging.TaskConsumer instance.
Resets the task consumer in task_consumer.
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 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. |