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

Backport of [ui] Fixes an issue where system jobs' status were set to Scaled Down when their allocs get garbage collected into release/1.9.x #24687

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #24620 to be assessed for backporting due to the inclusion of the label backport/1.9.x.

The below text is copied from the body of the original PR.


Description

Found a fun UI bug today: my system job had allocations fail, and then I worked on something else for several hours, and the garbage collector subsequently removed my terminal allocs.

When viewing the job in the UI, the job showed up as "Scaled Down". This is a new status we added this summer to help show when an operator manually set a job's group counts to 0 to let it sit dormant.

While there are problems with showing an alloc-less system job as "Failed" (it may in fact have been deliberately "scaled down" by virtue of taking all eligible nodes offline, for example), this seems like it's by far the most common reason you'd have an un-GC'd system job with no allocs, and so "Scaled Down" shouldn't be the default label for it. This PR makes it so system/sysbatch jobs cannot be labelled "Scaled Down" as such.


Overview of commits

@philrenaud philrenaud merged commit 31692ec into release/1.9.x Dec 17, 2024
13 of 17 checks passed
@philrenaud philrenaud deleted the backport/b-ui/scaled-down-status-fix-for-system-jobs/previously-vital-vulture branch December 17, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants