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

[ui] Add "stopped" as a valid status on jobs index/job detail #23328

Merged
merged 2 commits into from
Jun 15, 2024

Conversation

philrenaud
Copy link
Contributor

Our recent changes to how we label jobs in the UI considers any job "failed" if none of its expected allocations are running or pending, and it's not in active deployment.

This is coincidentally both true for jobs that failed because a user clicked the "stop" button, and also for jobs that failed because of the universe conspiring against us generally.

Luckily, jobs already had a nice Stop boolean to indicate the manual, deliberate stopping of a job (until it gets garbage collected, and provided it didn't have a "purge" flag passed in).

This PR observes that boolean and displays a new "Stopped" status in the UI in two places:

image image

resolves #22101

nomad/structs/job.go Outdated Show resolved Hide resolved
ui/app/components/job-status/panel/steady.js Show resolved Hide resolved
Copy link

github-actions bot commented Jun 14, 2024

Ember Test Audit comparison

main a9d61f6 change
passes 1571 1572 +1
failures 0 0 0
flaky 0 0 0
duration 11m 21s 523ms 11m 23s 665ms +02s 142ms

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM! This is a nice improvement!

@philrenaud philrenaud added the backport/1.8.x backport to 1.8.x release line label Jun 15, 2024
@philrenaud philrenaud force-pushed the f-ui/22101-ui-stopped-job-status branch from ccb7dd5 to a9d61f6 Compare June 15, 2024 03:11
@philrenaud philrenaud merged commit 8e589a9 into main Jun 15, 2024
29 checks passed
@philrenaud philrenaud deleted the f-ui/22101-ui-stopped-job-status branch June 15, 2024 03:33
philrenaud added a commit that referenced this pull request Jun 17, 2024
* Stopped status passed through to the statuses endpoint and observed on job model and steady-state panel

* Status passed to statuses endpoint and test for FE model statuses
philrenaud added a commit that referenced this pull request Jun 17, 2024
…tail into release/1.8.x (#23338)

* no-op commit due to failed cherry-picking

* [ui] Add "stopped" as a valid status on jobs index/job detail (#23328)

* Stopped status passed through to the statuses endpoint and observed on job model and steady-state panel

* Status passed to statuses endpoint and test for FE model statuses

---------

Co-authored-by: temp <[email protected]>
Co-authored-by: Phil Renaud <[email protected]>
Copy link

github-actions bot commented Jan 3, 2025

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.8.x backport to 1.8.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui] A service job that stops successfully as intended shows "Failed" instead of "Complete"
3 participants