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

t()

@type t() :: map()

Functions

new(step_id, task_id, max_retries, current_number \\ 0)

@spec new(String.t(), String.t(), non_neg_integer(), non_neg_integer()) ::
  {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}

retry(attempt, error, now)

@spec retry(t(), term(), non_neg_integer()) ::
  {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}