Skip to main content

Module retry

Module retry 

Source
Expand description

Retry logic with exponential backoff for transient failures.

Provides helpers to detect retryable errors and configure exponential backoff with jitter for HTTP requests and other transient operations.

Functionsยง

extract_retry_after
Extracts retry_after value from a RateLimited error if present.
is_retryable_anyhow
Determines if an anyhow error is retryable.
is_retryable_http
Determines if an HTTP status code is retryable.
retry_backoff
Creates a configured exponential backoff builder for retries.