Task result handle (AsyncResult in Python Celery, ported from celery.result.AsyncResult).
Provides querying of task state, result value, traceback, and blocking get/2
backed by Celery.Backend.Redis, as well as local eager execution results.
Summary
Functions
Returns the full task metadata map from Redis.
Creates an eager %Celery.Result{} (EagerResult in Python Celery).
Returns true if the task failed (state == "FAILURE").
Forgets (deletes) the result from the Redis result backend.
Waits until the task is ready and returns its result.
Creates a new %Celery.Result{} (AsyncResult) for task_id.
Returns true if the task has been executed (SUCCESS, FAILURE, or REVOKED).
Returns the task's stored result (or exception struct if failed, or nil if pending).
Revokes the task by marking it revoked in the backend and optionally broadcasting a
revoke control command over Kombu.Pidbox.
Returns the task's current state ("PENDING", "STARTED", "SUCCESS", "FAILURE", "REVOKED", "RETRY").
Alias for state/1 (matches AsyncResult.status in Python Celery).
Returns true if the task succeeded (state == "SUCCESS").
Returns the traceback of a failed task (or nil).
Types
Functions
Returns the full task metadata map from Redis.
Creates an eager %Celery.Result{} (EagerResult in Python Celery).
Returns true if the task failed (state == "FAILURE").
@spec forget(t()) :: :ok
Forgets (deletes) the result from the Redis result backend.
Waits until the task is ready and returns its result.
Options:
:timeout- timeout in milliseconds, float seconds, or:infinity(default:infinity):interval- poll interval in milliseconds (default50):propagate- re-raise exception if the task failed or was revoked (defaulttrue)
Alias for result/1 (matches AsyncResult.info in Python Celery).
Creates a new %Celery.Result{} (AsyncResult) for task_id.
Returns true if the task has been executed (SUCCESS, FAILURE, or REVOKED).
Returns the task's stored result (or exception struct if failed, or nil if pending).
Revokes the task by marking it revoked in the backend and optionally broadcasting a
revoke control command over Kombu.Pidbox.
Returns the task's current state ("PENDING", "STARTED", "SUCCESS", "FAILURE", "REVOKED", "RETRY").
Alias for state/1 (matches AsyncResult.status in Python Celery).
Returns true if the task succeeded (state == "SUCCESS").
Returns the traceback of a failed task (or nil).