Skip to content

fix(ui): a job that still runs is not counted as healthy - #601

Merged
7schmiede merged 1 commit into
mainfrom
fix/591-running-job-not-healthy
Nov 20, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/591-running-job-not-healthy

Conversation

@7schmiede

Copy link
Copy Markdown
Member

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. statusBucket looked 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.

Cause statusBucket read running as ready without the service's kind; since #544 a job is running while it runs
Bug class running-read-as-ready (siblings #571, #575)
Proof Unit test red at expected 'healthy' to be 'starting', green with the fix; in the lane's mock dashboard, starting migrate shows "7 healthy · 1 starting"
Siblings the mock hub's requires check counted a running job as a ready dependency: fixed with the same function. Other 'running' comparisons in ui/src are containers, guest lanes or the agent, not services
Safeguard the kind is a required argument, so no caller can bucket a status without it

Closes #591

🤖 Generated with Claude Code

`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>
@7schmiede
7schmiede merged commit 587dbaf into main Nov 20, 2026
10 checks passed
@7schmiede
7schmiede deleted the fix/591-running-job-not-healthy branch November 20, 2026 16:18
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.

Dashboard: a running job counts as healthy in the overview and its card

1 participant