Skip to content

Commit 9897c98

Browse files
authored
Merge pull request #1876 from emirot/patch-1
docs: add transient errors retry info
2 parents 2fea2e6 + bb1f054 commit 9897c98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/api-usage.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,9 @@ GitLab server can sometimes return a transient HTTP error.
421421
python-gitlab can automatically retry in such case, when
422422
``retry_transient_errors`` argument is set to ``True``. When enabled,
423423
HTTP error codes 500 (Internal Server Error), 502 (502 Bad Gateway),
424-
503 (Service Unavailable), and 504 (Gateway Timeout) are retried. By
425-
default an exception is raised for these errors.
424+
503 (Service Unavailable), and 504 (Gateway Timeout) are retried. It will retry until reaching
425+
the `max_retries` value. By default, `retry_transient_errors` is set to `False` and an exception
426+
is raised for these errors.
426427

427428
.. code-block:: python
428429

0 commit comments

Comments
 (0)