Repository navigation
fix: a long-running job is not read as starting (#611) - #612
Merged
Merged
Conversation
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>
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
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.Scope::glancecounts running jobs (jobs) instead of settingstarting;GET /hub/summaryand thesummaryevent carryjobs,lane_ready,lane_total(additive; older dashboards ignore them).?mock=longjob.running-job-read-as-startingexpected '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 listsmigratestatusBucketcaller: the sidebar and the stack store test!== 'idle'/'failed', so a job stays active; the mock'srequirescounts onlyhealthyas readyNo 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