Repository navigation
fix(ui): a job that still runs is not counted as healthy - #601
Merged
Merged
Conversation
`statusBucket` read a `running` status as healthy whatever the service's kind, so the overview's count, its filter and a job's shortcut card put a migration that still runs there. It takes the service now (status and kind, both required, so no caller can leave the kind out) and puts a running job into `starting` until it completed, as the daemon (#573) and the hub's summary (#575) count it. The mock hub's `requires` check, which let a running job count as a ready dependency, uses it too. Closes #591 Bug-Class: running-read-as-ready Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The dashboard counted a job that still runs (a migration,
kind = "job") as healthy: in the overview's count and filter, and on a job's shortcut card.statusBucketlooked at the status only. It takes the service now, with its kind required, and puts a running job into "starting" until it completed, as the daemon (#573) and the hub's summary (#575) count it.statusBucketreadrunningas ready without the service's kind; since #544 a job isrunningwhile it runsrunning-read-as-ready(siblings #571, #575)expected 'healthy' to be 'starting', green with the fix; in the lane's mock dashboard, startingmigrateshows "7 healthy · 1 starting"requirescheck counted a running job as a ready dependency: fixed with the same function. Other'running'comparisons inui/srcare containers, guest lanes or the agent, not servicesCloses #591
🤖 Generated with Claude Code