Validated, normalized execution policy for an activity call.
Retry limits include both execution timeouts and backoff delays, so a policy cannot silently schedule work beyond its configured retry horizon.
Summary
Functions
Returns the largest supported per-attempt timeout in milliseconds.
Normalizes and validates activity execution options.
Returns the canonical retry keyword stored with durable activity work.
Types
@type t() :: %Continuum.Activity.Policy{ backoff: :constant | :exponential, base_ms: non_neg_integer(), idempotency_key: binary() | nil, max_attempts: pos_integer(), max_backoff_ms: non_neg_integer(), max_retry_horizon_ms: pos_integer(), timeout_ms: pos_integer() }
Functions
@spec max_timeout_ms() :: pos_integer()
Returns the largest supported per-attempt timeout in milliseconds.
Normalizes and validates activity execution options.
Returns the canonical retry keyword stored with durable activity work.