# `Jidoka.Workflow.RetryPolicy`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/workflow/retry_policy.ex#L1)

Data contract for local workflow step retry policy.

# `t`

```elixir
@type t() :: %Jidoka.Workflow.RetryPolicy{
  backoff: %{max: integer(), min: integer(), type: :fixed | :exponential},
  max_attempts: integer()
}
```

# `backoff_types`

```elixir
@spec backoff_types() :: [atom()]
```

Returns the supported retry backoff types.

# `new`

```elixir
@spec new(keyword() | map() | nil) :: {:ok, t() | nil} | {:error, term()}
```

Parses retry policy attributes.

# `new!`

```elixir
@spec new!(keyword() | map() | nil) :: t() | nil
```

Parses retry policy attributes or raises.

# `schema`

```elixir
@spec schema() :: Zoi.schema()
```

Returns the Zoi schema for workflow retry policies.

---

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