InvocationRetryPolicy
class InvocationRetryPolicy
Retry policy used by Restate when retrying failed handler invocations.
This policy controls an exponential backoff with optional capping and a terminal action:
initialInterval
: delay before the first retry attempt.exponentiationFactor
: multiplier applied to the previous delay to compute the next delay.maxInterval
: upper bound for any computed delay.maxAttempts
: maximum number of attempts (initial call counts as the first attempt).onMaxAttempts
: what to do whenmaxAttempts
is reached.
Unset fields inherit the corresponding defaults from the Restate server configuration. Implementations may also enforce system-wide minimum/maximum bounds.
Types
Functions
Link copied to clipboard
Link copied to clipboard
Exponential backoff multiplier used to compute the next retry delay.
Link copied to clipboard
Initial delay before the first retry attempt.
Link copied to clipboard
Maximum number of attempts before giving up retrying.
Link copied to clipboard
Upper bound for the computed retry delay.
Link copied to clipboard
Behavior when the configured maxAttempts is reached.