Serializable task invocation signature (celery.canvas.Signature / subtask).
Matches Python Celery's wire dictionary representation so signatures can be passed in
callbacks, errbacks, chain, and chord fields between Python and Elixir workers:
%{
"task" => "src.tasks.command",
"args" => [...],
"kwargs" => %{...},
"options" => %{...},
"subtask_type" => nil,
"immutable" => false
}
Summary
Functions
Dispatches a %Celery.Canvas.Signature{} asynchronously via Celery.send_task/3.
Dispatches a %Celery.Canvas.Signature{} with positional/keyword arguments (delay).
Freezes a signature by assigning a task_id in its options if not already set,
returning {updated_signature, %Celery.Result{}}.
Reconstructs a %Celery.Canvas.Signature{} from a wire map.
Creates a new %Celery.Canvas.Signature{}.
Serializes a %Celery.Canvas.Signature{} to a Python Celery wire-compatible map.
Types
Functions
@spec apply_async(t(), keyword()) :: {:ok, Celery.Result.t()} | {:error, term()}
Dispatches a %Celery.Canvas.Signature{} asynchronously via Celery.send_task/3.
Dispatches a %Celery.Canvas.Signature{} with positional/keyword arguments (delay).
@spec freeze(t(), keyword()) :: {t(), Celery.Result.t()}
Freezes a signature by assigning a task_id in its options if not already set,
returning {updated_signature, %Celery.Result{}}.
Reconstructs a %Celery.Canvas.Signature{} from a wire map.
Creates a new %Celery.Canvas.Signature{}.
Serializes a %Celery.Canvas.Signature{} to a Python Celery wire-compatible map.