summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPetr Špaček <pspacek@isc.org>2022-10-18 14:13:20 +0200
committerNejc Habjan <hab.nejc@gmail.com>2022-12-19 22:58:03 +0100
commitdced76a9900c626c9f0b90b85a5e371101a24fb4 (patch)
tree9af498aa58c5125daddc2d905c2e8963c0b2e760 /docs
parent043de2d265e0e5114d1cd901f82869c003413d9b (diff)
downloadgitlab-dced76a9900c626c9f0b90b85a5e371101a24fb4.tar.gz
feat(client): automatically retry on HTTP 409 Resource lock
Fixes: #2325
Diffstat (limited to 'docs')
-rw-r--r--docs/api-usage-advanced.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/api-usage-advanced.rst b/docs/api-usage-advanced.rst
index 2b069b8..256ae2d 100644
--- a/docs/api-usage-advanced.rst
+++ b/docs/api-usage-advanced.rst
@@ -123,9 +123,11 @@ GitLab server can sometimes return a transient HTTP error.
python-gitlab can automatically retry in such case, when
``retry_transient_errors`` argument is set to ``True``. When enabled,
HTTP error codes 500 (Internal Server Error), 502 (502 Bad Gateway),
-503 (Service Unavailable), and 504 (Gateway Timeout) are retried. It will retry until reaching
-the ``max_retries`` value. By default, ``retry_transient_errors`` is set to ``False`` and an exception
-is raised for these errors.
+503 (Service Unavailable), and 504 (Gateway Timeout) are retried.
+Additionally the HTTP error code 409 (Conflict) is retried if the text message
+mentions "Resource lock". It will retry until reaching the ``max_retries``
+value. By default, ``retry_transient_errors`` is set to ``False`` and an
+exception is raised for these errors.
.. code-block:: python