Request retries
Статья создана
Обновлена 25 августа 2025 г.
Some general info about how retries works
Retries configuration
class yandex_cloud_ml_sdk._retry.RetryPolicy
A class that defines a retry policy for network operations.
max_attempts: int
the maximum number of retry attempts
initial_backoff: float
the initial backoff time (in seconds)
max_backoff: float
the maximum backoff time (in seconds)
backoff_multiplier: float
the multiplier applied to the backoff after each attempt
jitter: float
the maximum amount of jitter to add to the backoff
retriable_codes: Iterable
the grpc status codes that are considered retriable
get_interceptors()
Return type |
async sleep(attempt, deadline)
Parameters |
|
Return type |
None |