RetryMixin
RetryMixin
Mixin for initializing a retry mechanism with configurable parameters.
initialize_retryer(max_retries, max_wait)
Initialize the retry mechanism with exponential backoff and jitter.
Parameters:
-
max_retries(int) –Maximum number of retry attempts.
-
max_wait(int) –Maximum wait time between retries in seconds.
Returns:
-
AsyncRetrying(AsyncRetrying) –Configured retrying instance with specified parameters.