Skip to content

fix: a long-running job is not read as starting (#611) - #612

Merged
7schmiede merged 1 commit into
mainfrom
fix/611-running-job-bucket
Nov 23, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/611-running-job-bucket

Conversation

@7schmiede

Copy link
Copy Markdown
Member

What and why

A long kind = "job" (a training of hours in a lane on a node) showed as "starting" for its whole run: the overview counted it as "1 starting" and the stack card on the start page said "Starting", with 0/4 services while the main tree was stopped and the lane worked. Since #591/#593 a running job is not ready, which stays; it is no start either.

  • Overview: a running job is in a bucket of its own, "running as a job" (info tone, own filter), neither healthy nor starting.
  • Hub summary: Scope::glance counts running jobs (jobs) instead of setting starting; GET /hub/summary and the summary event carry jobs, lane_ready, lane_total (additive; older dashboards ignore them).
  • Start page: "Running · 1 job" instead of "Starting"; while nothing of the main tree is up and a lane runs, the tile shows "Services in lanes 1/4" (the list "1/4 in lanes").
  • Mock hub: ?mock=longjob.
Cause #591/#593 put a running job into the only non-ready bucket there was, "starting"
Bug class running-job-read-as-starting
Proof vitest cases red before (expected 'starting' to be 'job', card label, lane figures), green after; hub tests for glance and summary; in the lane with ?mock=longjob: shop "Running · 1 job", crm "Services in lanes 1/4", the overview's "1 running as a job" filter lists migrate
Siblings every statusBucket caller: the sidebar and the stack store test !== 'idle' / 'failed', so a job stays active; the mock's requires counts only healthy as ready

No review card: additive API fields and a dashboard label, cheap to reverse. Decided on my own: the label "running as a job", lane figures only while the main tree has nothing ready.

Closes #611

🤖 Generated with Claude Code

Since #591 and #593 a job that runs is not counted as ready, which is
right, but it went into "starting" instead: a training of hours in a lane
showed as a service stuck in its start, and its stack card said
"Starting" for a whole day.

- The dashboard's `statusBucket` has a bucket of its own for a running
  job (`job`): the overview counts it as "running as a job", with its own
  filter, neither healthy nor starting; a job's shortcut card is in the
  info tone.
- The hub's glance counts running jobs (`jobs`) instead of setting
  `starting`, so a stack with a running job is `ok`; the summary carries
  `jobs` and the started lanes' `lane_ready`/`lane_total` (additive, in
  `GET /hub/summary` and the `summary` event).
- The start page says "Running · 1 job", and shows the lanes' services
  ("Services in lanes 1/4") while nothing of the main tree is up and a
  lane runs, instead of 0/4.
- The mock hub gets `?mock=longjob` for it.

Verification: the new vitest cases failed before the change (`expected
'starting' to be 'job'`, the card's label and lane figures) and pass with
it; the hub's tests for the glance and the summary; the lane's dashboard
with `?mock=longjob` shows shop "Running · 1 job", crm "Services in lanes
1/4", and the overview's "1 running as a job" filter lists `migrate`.

Bug-Class: running-job-read-as-starting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit b761b95 into main Nov 23, 2026
14 checks passed
@7schmiede
7schmiede deleted the fix/611-running-job-bucket branch November 23, 2026 12:27
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 long-running job reads as "starting" for its whole run

1 participant