-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
refactor(limits): Refactor global limits counter #7931
refactor(limits): Refactor global limits counter #7931
Conversation
lib/workers/global/limits.ts
Outdated
if (val > 0) { | ||
max = val; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this for backwar compability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Well, I think we can get rid of this flag completely.
lib/workers/global/limits.ts
Outdated
...limit, | ||
max: maxVal, | ||
}); | ||
if (max === null || typeof max === 'number') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference here - undefined
is skipped altogether?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, undefined
now also means limit reset
🎉 This PR is included in version 23.100.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
Introduce
allowUnlimited
flag:true
for commit per-run setting. Can be set via CLI only.false
for PR and branch per-repo limits. Options are set via config, but max limit values are calculated per-repo and can be 0 when limit reached.Context:
Ref: #7198
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: