Skip to main content

Module backoff

Module backoff 

Source
Expand description

Backoff strategies for retry delay computation.

This module provides pluggable backoff strategies that compute the delay before a retried run becomes eligible for re-promotion from RetryWait to Ready.

Structs§

ExponentialBackoff
Exponential backoff: delay doubles with each attempt, capped at a maximum.
FixedBackoff
Fixed-interval backoff: every retry waits the same duration.

Enums§

BackoffConfigError
Error returned when backoff configuration is invalid.

Traits§

BackoffStrategy
A strategy for computing retry delay based on attempt number.

Functions§

retry_ready_at
Computes the timestamp at which a retried run becomes ready.