LinearRetry Class

Linear retry.

Inheritance
azure.storage.blob._shared.policies_async.AsyncStorageRetryPolicy
LinearRetry

Constructor

LinearRetry(backoff=15, retry_total=3, retry_to_secondary=False, random_jitter_range=3, **kwargs)

Parameters

backoff
default value: 15
retry_total
default value: 3
retry_to_secondary
default value: False
random_jitter_range
default value: 3

Methods

get_backoff_time

Calculates how long to sleep before retrying.

get_backoff_time

Calculates how long to sleep before retrying.

get_backoff_time(settings)

Parameters

settings
Required

Returns

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

Return type

int,