Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: obey the rate limit#488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpocentek merged 3 commits intopython-gitlab:masterfromsiemens:feat/rate-limit
Apr 24, 2018

Conversation

@max-wittig
Copy link
Member

This PR enables python-gitlab to wait if the GitLab rate-limit is hit.
It waits as long as GitLab specifies via theRetry-After header

GitLab lacks documentation about this feature, but rate-limits can be set in the Admin UI (see screenshot)
and via the settings API.
image

{"throttle_authenticated_api_enabled":false,"throttle_authenticated_api_requests_per_period":2,"throttle_authenticated_api_period_in_seconds":10,}

It can be disabled using theobey_rate_limit=False parameter

@gpocentek
Copy link
Contributor

Hi@max-wittig

Thanks for this PR, it looks good and provides a very nice feature!

max-wittig reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@max-wittig@gpocentek

[8]ページ先頭

©2009-2025 Movatter.jp