Skip to content

Implement backoff when receive rate limit errors in the Github scaler #6643

Open
@andrewhibbert

Description

@andrewhibbert

Proposal

The best practices suggest to handle rate limit errors appropriately, in particular:

  • If the retry-after response header is present, you should not retry your request until after that many seconds has elapsed.
  • If the x-ratelimit-remaining header is 0, you should not make another request until after the time specified by the x-ratelimit-reset header. The x-ratelimit-reset header is in UTC epoch seconds.

Use-Case

Continuing to make requests while you are rate limited may result in the banning of your integration.

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions