swh.storage.proxies.retry module

swh.storage.proxies.retry.should_retry_adding(retry_state) bool[source]

Retry if the error/exception is (probably) not about a caller error

swh.storage.proxies.retry.retry_function(storage, attribute_name)[source]
class swh.storage.proxies.retry.RetryingProxyStorage(storage)[source]

Bases: object

Storage implementation which retries adding objects when it specifically fails (hash collision, integrity error).