-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix(jobs): Handle zero jobs with zero thresholds #2613
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
Conversation
|
As mentioned here #2610 (comment) instead of allowing a negative threshold, allow setting zero as a threshold. |
vladimyr
left a comment
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.
First PR here, let me know if anything can be improved!
Sure, do more great PRs like this one! ❤️
LGTM
|
Actually, I forgot, docs need to get updated too 🙃 |
Thank you for the reviews!! And I just added the docs, lmk if it sounds good or if I should change the wording |
* Handle zero jobs with negative thresholds * Allow for zero threshold only * Log when threshold is less than zero * Address comments * Add docs
First PR here, let me know if anything can be improved!
Description
Currently, if there are 0 jobs running then the jobs module doesn't show anything. However, if a negative threshold is specified (user wants to explicitly see that there are 0 jobs running), then it should show 0.
Closes #2610
How Has This Been Tested?
Checklist: