Use http_retry decorator from swh.core.retry module
The http_retry decorator has been moved to swh-core package in order to ease its reuse across swh packages.
This commit is contained in:
parent
1ee549fc9d
commit
4f57e84450
13 changed files with 32 additions and 201 deletions
|
@ -318,7 +318,7 @@ then immediately stop the listing by doing an equivalent of
|
|||
:py:meth:`Response.raise_for_status` from the ``requests`` library. As for rate-limiting
|
||||
errors, we have a strategy of using a flexible decorator to handle the retrying for us.
|
||||
It is based on the ``tenacity`` library and accessible as :py:func:`http_retry` from
|
||||
:py:mod:`swh.lister.utils`.
|
||||
:py:mod:`swh.core.retry`.
|
||||
|
||||
Pagination
|
||||
^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue