Celery v0.8.1 (stable) documentation

This Page

Backend: Database - celery.backends.database

celery.backends.database

class celery.backends.database.Backend(*args, **kwargs)

The database backends. Using Django models to store task metadata.

cleanup()
Delete expired metadata.
get_result(task_id)
Get the result for a task.
get_status(task_id)
Get the status of a task.
get_traceback(task_id)
Get the traceback of a failed task.
init_periodic_tasks()
Create entries for all periodic tasks in the database.
is_done(task_id)
Returns True if task with task_id has been executed.
run_periodic_tasks()

Run all waiting periodic tasks.

Returns:a list of (task, task_id) tuples containing the task class and id for the resulting tasks applied.
store_result(task_id, result, status, traceback=None)
Store return value and status of an executed task.