Skip to content

Configuration

config

RetryConfig dataclass

RetryConfig(
    max_attempts: int = 3,
    backoff_base: float = 0.5,
    backoff_cap: float = 10.0,
    retry_statuses: frozenset[int] = (
        lambda: frozenset({429, 502, 503})
    )(),
)

Bounds and timing for the retry policy.