LinearRetry class

Definition

Linear retry.

LinearRetry(backoff=15, retry_total=3, retry_to_secondary=False, random_jitter_range=3, **kwargs)
Inheritance
azure.storage.blob._shared.policies.StorageRetryPolicy
azure.storage.blob._shared.policies_async.AsyncStorageRetryPolicy
LinearRetry

Methods

get_backoff_time(settings)

Calculates how long to sleep before retrying.

get_backoff_time(settings)

Calculates how long to sleep before retrying.

get_backoff_time(settings)

Parameters

settings

Returns

An integer indicating how long to wait before retrying the request, or None to indicate no retry should be performed.

Return type

int