Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca98d88 commit d637206Copy 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
if max_retries == -1 or cur_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" in result.headers:
737
wait_time = int(result.headers["Retry-After"])
738
elif "RateLimit-Reset" in result.headers:
0 commit comments