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] Remove simulacral allocation stat in favor of live-updating one #23306

Conversation

philrenaud
Copy link
Contributor

@philrenaud philrenaud commented Jun 11, 2024

While most of our job status panel allocation numbers use allocations live as they're updated from the /allocations endpoint for a given job, one holdout remained: the the "X Allocations Running" number came from the job-summary, which tabulates at a slightly different time than allocations do (and is sometimes susceptible to inaccuracy)

This changes the number in steady-state jobs to be what we actually see among currently running allocations from the /allocations endpoint. This doesn't discriminate between new-version and old-version allocations, only returning the number currently running.

image

Resolves #20627

@@ -185,6 +185,10 @@ export default class JobStatusPanelSteadyComponent extends Component {
return this.job.allocations.filter((a) => !a.isOld && a.hasBeenRestarted);
}

get runningAllocs() {
return this.job.allocations.filter((a) => a.clientStatus === 'running');
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@job.runningAllocs comes from the job's summary as defined here in case you were curious

Copy link

github-actions bot commented Jun 11, 2024

Ember Test Audit comparison

main 9dc4567 change
passes 1572 1571 -1
failures 0 0 0
flaky 0 0 0
duration 11m 21s 207ms 11m 22s 239ms +01s 032ms

@philrenaud philrenaud force-pushed the 20627-current-job-overview-summary-page-is-reporting-disparate-numbers-for-running-allocations-segals-law branch from 8e641ed to b8880c0 Compare June 12, 2024 17:50
@philrenaud philrenaud merged commit eacf47a into main Jun 14, 2024
15 checks passed
@philrenaud philrenaud deleted the 20627-current-job-overview-summary-page-is-reporting-disparate-numbers-for-running-allocations-segals-law branch June 14, 2024 13:23
@philrenaud philrenaud added the backport/1.8.x backport to 1.8.x release line label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

Current Job Overview Summary page is reporting disparate numbers for running allocations (segal's law)
2 participants