angzarr_client.retry¶
Retry policy interface and default exponential backoff implementation.
Attributes¶
Classes¶
Strategy for retrying failed operations. |
|
Retries with exponential backoff and optional jitter. |
Functions¶
|
Return the standard retry policy matching Rust's backoff config. |
Module Contents¶
- angzarr_client.retry.T¶
- class angzarr_client.retry.ExponentialBackoffRetry(min_delay: float = 0.1, max_delay: float = 5.0, max_attempts: int = 10, jitter: bool = True, on_retry: Callable[[int, Exception], None] | None = None)¶
Bases:
RetryPolicyRetries with exponential backoff and optional jitter.
- min_delay = 0.1¶
- max_delay = 5.0¶
- max_attempts = 10¶
- jitter = True¶
- on_retry = None¶
- angzarr_client.retry.default_retry_policy() RetryPolicy¶
Return the standard retry policy matching Rust’s backoff config.