forked from paritytech/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added control for secondary rate limit (paritytech#15)
Sometimes the secondary rate limit stop the action from working. This limit is quite unpredictable, sometimes it hits on small requests when GitHub's api is being too active, or sometimes it doesn't appear at all. What I do know is that it appears when a similar call is done actively without a break. This change adds a one minute break for every 5 pages that has been iterated, which, in my experiments, seems to have stopped the error from appearing. I have also updated all the GitHub actions to their latest versions.
- Loading branch information
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters