# `SquidMesh.Persistence.StepAttempt`
[🔗](https://github.com/ccarvalho-eng/squid_mesh/blob/main/lib/squid_mesh/persistence/step_attempt.ex#L1)

Persisted attempt state for a step run.

Step attempts capture retry history independently from the latest step state
so the runtime can record how many times a step was attempted and what error
payload was produced for each attempt.

# `status`

```elixir
@type status() :: String.t()
```

# `t`

```elixir
@type t() :: %SquidMesh.Persistence.StepAttempt{
  __meta__: term(),
  attempt_number: term(),
  error: term(),
  id: term(),
  inserted_at: term(),
  status: term(),
  step_run: term(),
  step_run_id: term(),
  updated_at: term()
}
```

# `changeset`

```elixir
@spec changeset(t(), map()) :: Ecto.Changeset.t()
```

Builds a changeset for persisted step attempt state.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
