Repository navigation
fix(daemon): a running job shows what it uses, and that it runs (#544) - #547
Merged
Merged
Conversation
A job's instance never became `main`: `start_locked` waited in `wait_instance` with it as a local and ended it there, so `tree_usage` had nothing to measure for its whole run, and its state stayed `starting`. - The slot keeps what the instance being started uses (`starting_usage`), sampled by `wait_instance` every `NATIVE_EVERY` while a job runs or a service waits for its health check; `tree_usage` takes `main`, else that, and the start clears it when it is over. - A job is `running` from its launch until it ends. Its start's duration still runs to its end (`set_status_of` keeps `spawned` for a job's `running`). Its dependants (`after`), a command's `requires` and `devstack up` still wait for `completed`. Closes #544 Bug-Class: unmeasured-start Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…544) The unit test runs on Windows only (elsewhere a process needs devstack's shim binary); the daemon's integration test checks the job's usage on every platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
7schmiede
added a commit
that referenced
this pull request
Nov 16, 2026
The dashboard opens on a start page with every stack as a tile, a service marked `shortcut = true` gets a card of its own with a large button that opens it, and a running job shows that it runs and what it uses. Fixed: a lane no longer lands on ports another stack claims for its lane on a node, whether it starts here or on a node; the stacks' registry keeps an entry it meets while another daemon replaces it; a machine the pool provisioned is not given back the moment it enrols, nor right after a lease on it began; the start page's tiles follow starts and stops from other tabs. Also ADR-0106 (a running job is `running` and measured), the record of #547. 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
kind = "job"showedstartingwith no usage for its whole run (#544): its instance never becamemain(start_lockedwaited with it as a local), sotree_usagehad nothing to measure.starting_usage), sampled bywait_instanceeveryNATIVE_EVERYwhile a job runs or a service waits for its health check;tree_usagetakesmain, else that; cleared when the start is over. A candidate's wait notes nothing (its service's main is measured).runningfrom its launch until it ends. Its start's duration (diagnostic log) still runs to its end. Its dependants (after, unchanged), a command'srequiresanddevstack up(both adjusted) still wait forcompleted; the integration test that stops a running job waits forrunningnow.Review card
Approved by the owner on 2026-11-16 (in the conversation): points 1 and 2.
runningfrom its launch until it ends (wasstarting), in the API, the events,status(CLI, MCP) and the dashboardworking) every client would have to learnrunningdevstack upand a command'srequirescount a job as done only atcompleted, never atrunningrunningas ready, as for other servicesChecks
a_running_job_shows_running_and_what_it_uses: red before (neverrunning), green after.startingandburn - - -intop; this buildrunningandburn 0.8% 13.5 MiB 2;upreturns after the job (8.7 s) in both.cargo fmt --check,cargo clippy --workspace --all-targets --locked -D warnings,cargo test -p devstack-daemon(213),cargo test -p devstack,npm testinui/(253).Closes #544
🤖 Generated with Claude Code