Backplane. AgentRuntime. Attempt
(backplane_agent_runtime v1.6.0)
Copy Markdown
Attempt identity and bounded retry accounting.
Retries preserve the step identity and increment the attempt number. A new attempt cannot bypass a failed attempt's remaining retry envelope.
Summary
Types
@type t() :: map()
Functions
@spec new(String.t(), String.t(), non_neg_integer(), non_neg_integer()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec retry(t(), term(), non_neg_integer()) :: {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}