Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Randomize locking job schedule to prevent running into github rate limits #410

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

mutahhir
Copy link
Contributor

@mutahhir mutahhir commented Apr 2, 2024

Description

As seen in the following images, we seem to be running into a secondary rate limit when we try to lock issues within our provider repositories.

image image image

This PR tries to use a hash of the project name to generate a somewhat unique cron schedule across all our repositories. I have to say that I haven't really thought too hard about this, so if you feel there are problems in my approach, please let me know.

@mutahhir mutahhir requested a review from a team as a code owner April 2, 2024 08:38
@mutahhir mutahhir requested review from ansgarm and DanielMSchmidt and removed request for a team April 2, 2024 08:38
Copy link
Contributor

@ansgarm ansgarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Love the solution 💯

@ansgarm ansgarm merged commit 7b8907d into main Apr 2, 2024
6 checks passed
@ansgarm ansgarm deleted the fix/randomize-locking branch April 2, 2024 08:52
Copy link

I'm going to lock this pull request because it has been closed for at least 7 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue so we can investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants