Repository navigation
feat(hub): stop a stack's containers with it; a daemon's last telemetry is sent - #178
Merged
Merged
Conversation
…ry is sent - The dashboard's stop dialog (header and sidebar) offers "Stop its containers too" (`down?infra=true`, as `devstack down --infra`). It is checked when the stack runs nothing but containers: there a stop without them left everything running and only ended the daemon. Not offered while lanes run, which keep the containers they share (ADR-0030). - The daemon sends what it kept since the last telemetry round as it exits, 2 s at most, to the pools of that round: its stop and whatever went wrong while stopping were dropped before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/stop-with-containers
branch
from
October 21, 2026 13:35
9d1a99a to
4997b33
Compare
Merged
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.
Why
From the pool's telemetry: a stack that runs only Compose containers was stopped from the dashboard three times; each time the daemon exited and every container kept running. The dashboard always stops with
infra=false(ADR-0004: infrastructure is long-lived), and onlydevstack down --infratook the containers down. None of the three stops showed the daemon's owndaemon_stopping/daemon_stoplines: telemetry is sent every 60 s and nothing was sent on exit.Change
/hub/stacks/{id}/down?infra=true); volumes stay. Checked when the stack runs no service of its own, unchecked otherwise; not offered while lanes run (they keep the containers they share, ADR-0030). The confirm dialog gets an optional checkbox (ConfirmOption).telemetry::flushsends what was kept since the last round to the pools of that round, at most 2 s, without gauges; the daemon calls it afterdaemon_stop.Tests
stores.test.ts: containers-only stack → option checked,infra=true; unchecked →infra=false; with services → offered unchecked.telemetry.rs:flushkeeps lines when not sending, takes and sends them when on, within its bound; the tests that touch the module's globals now hold a lock.cargo clippy --workspace --all-targetsclean,cargo test -p devstack-daemon,npm run typecheck,vitest run.🤖 Generated with Claude Code