We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentca98d88 commitd637206Copy full SHA for d637206
gitlab/client.py
@@ -729,8 +729,10 @@ def http_request(
729
):
730
# Response headers documentation:
731
# https://docs.gitlab.com/ee/user/admin_area/settings/user_and_ip_rate_limits.html#response-headers
732
+# For gitlab.com:
733
+# https://docs.gitlab.com/ee/user/gitlab_com/index.html#gitlabcom-specific-rate-limits
734
ifmax_retries==-1orcur_retries<max_retries:
-wait_time=2**cur_retries*0.1
735
+wait_time=60# In gitlab.com limits are calculated per minute. Better to be on the safe side in case headers are missing
736
if"Retry-After"inresult.headers:
737
wait_time=int(result.headers["Retry-After"])
738
elif"RateLimit-Reset"inresult.headers: