Task Result - celery.result

celery.result

class celery.result.AsyncResult(task_id)

Pending task result using the default backend.

task_id
The unique identifier for this task.
backend
Instance of celery.backends.DefaultBackend.
class celery.result.BaseAsyncResult(task_id, backend)

Base class for pending result, takes backend argument.

task_id
The unique identifier for this task.
backend
The task result backend used.
get()
Alias to wait.
is_done()

Returns True if the task executed successfully.

Return type:bool
ready()

Returns True if the task executed successfully, or raised an exception. If the task is still pending, or is waiting for retry then False is returned.

Return type:bool
result
The tasks resulting value.
status
The current status of the task.
successful()
Alias to is_done.
wait(timeout=None)

Return the result when it arrives.

If timeout is not None and the result does not arrive within timeout seconds then celery.backends.base.TimeoutError is raised. If the remote call raised an exception then that exception will be reraised by get().

Previous topic

Tasks - celery.task

Next topic

Task Registry - celery.registry

This Page