Task Result - celery.result

celery.result

class celery.result.AsyncResult(task_id)
Pending task result using the default backend.
class celery.result.BaseAsyncResult(task_id, backend)

Base class for pending result, takes backend argument.

get()
Alias to wait.
is_done()
Returns True if the task executed successfully.
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.
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