Skip to content

Conversation

@mschoettle
Copy link
Contributor

Upgrade octokit packages. In particular, plugin-throttling which handles the current best practices in avoiding being rate limited.

Fixes #189
Fixes #90

Should also fix #222

src/index.ts Outdated
return true;
},
minimumAbuseRetryAfter: 1000,
fallbackSecondaryRateRetryAfter: 120,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It always takes several rounds of waiting 120s so it could be higher by default.

Suggested change
fallbackSecondaryRateRetryAfter: 120,
fallbackSecondaryRateRetryAfter: 1200,

Copy link
Member

Choose a reason for hiding this comment

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

It feels like a big jump from 2 min to 20. I haven't run into this ratelimit yet and have no experience if this or which value makes sense. Maybe 5 min instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For me it only happens when migrating MRs with a lot of comments/discussions. If I remember correctly it takes about 20 to 30 minutes to run again. 5 minutes is a good balance I think since it will retry until it works. If it's 30 and we retry after 20 minutes it will wait 40 minutes in total.

@mschoettle mschoettle requested a review from spruce May 21, 2025 16:09
Copy link
Member

@spruce spruce left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks

@spruce spruce merged commit a6c3cb6 into piceaTech:master May 27, 2025
@mschoettle mschoettle deleted the upgrade-octokit branch May 27, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants