LinearRetry Class
Linear retry.
Constructs a Linear retry object.
- Inheritance
-
azure.storage.common.retry._RetryLinearRetry
Constructor
LinearRetry(backoff=15, max_attempts=3, retry_to_secondary=False, random_jitter_range=3)
Parameters
Name | Description |
---|---|
backoff
|
The backoff interval, in seconds, between retries. default value: 15
|
max_attempts
|
The maximum number of retry attempts. default value: 3
|
retry_to_secondary
|
Whether the request should be retried to secondary, if able. This should only be enabled of RA-GRS accounts are used and potentially stale data can be handled. default value: False
|
random_jitter_range
|
A number in seconds which indicates a range to jitter/randomize for the back-off interval. For example, a random_jitter_range of 3 results in the back-off interval x to vary between x+3 and x-3. default value: 3
|
Methods
retry |
retry
retry(context)
Parameters
Name | Description |
---|---|
context
Required
|
|
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for