Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/dashboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 6338939657 refactor(#2916): destroy submits a DAG instead of an imperative teardown
Destroy was a straight-line async fn with no queue node behind it, so
nothing in the graph could answer "is this container going down on
purpose?". That gap is why an imperative crash-watch suppression guard
existed: an RAII handle held for the operation's duration, a second way
to say what every other lifecycle op already says through its node.

Reuse the existing Stop node rather than teaching a new node to stop
things:

    Stop -> DestroyContainer -> (PurgeState) -> DestroyBookkeeping

Stop already declares takes_container_down honestly, so the suppression
is now derived from the graph like every other op's. It also turns the
precondition into an edge: DestroyContainer runs only under a completed
Stop, so it operates on an already-stopped container and carries
takes_container_down = false permanently. A container still alive at
that point is a real bug and stays loud instead of being absorbed by a
flag -- which matters because a wrong true silently swallows a crash
while a wrong false only costs a spurious event.

Removes suppress_crash_watch, CrashWatchSuppression, crash_suppressed,
crash_watch_suppressed and NO_NODE_LABEL. The migration call sites went
with the obsolete startup migrations, so destroy was the last caller and
intent now has exactly one home.

destroy() becomes a submit-and-return, matching every sibling endpoint
(rebuild, kill, restart, start, pause, resume) -- it was the only
lifecycle op that awaited its work. The container rescan moves into the
bookkeeping tail, so ContainerRemoved now arrives after the 200 rather
than before it.

Also drops an orphaned doc-comment in coordinator.rs: two stacked blocks
where only the second described crash_suppressed, the first documenting
a field that no longer exists. Removing the field would have re-pointed
it at recent_transient.
2026-08-14 00:24:45 +02:00
..
approvals.rs hive-sh4re: split approval-queue schema into its own topic module 2026-08-10 23:05:18 +02:00
build_logs.rs docs: stop asserting DagView/NodeView after their deletion 2026-08-03 21:47:58 +02:00
extra_forges.rs hive-c0re: drop redundant METHOD/path prefixes from OpenAPI summaries 2026-08-02 21:35:17 +02:00
health.rs hive-c0re: replace json! with typed structs in dashboard handlers 2026-08-13 18:12:35 +02:00
infra_containers.rs docs(gateway): describe what is, not what changed 2026-08-11 18:09:51 +02:00
journal.rs docs(gateway): describe what is, not what changed 2026-08-11 18:09:51 +02:00
lifecycle_ops.rs refactor(#2916): destroy submits a DAG instead of an imperative teardown 2026-08-14 00:24:45 +02:00
matrix_accounts.rs hive-c0re: drop redundant METHOD/path prefixes from OpenAPI summaries 2026-08-02 21:35:17 +02:00
meta_inputs.rs wip(#3001): catch the multi-line .insert( chains the grep missed 2026-08-04 19:57:32 +02:00
misc_api.rs hive-c0re: replace json! with typed structs in dashboard handlers 2026-08-13 18:12:35 +02:00
mod.rs jobq: a generic per-state roll-up, served beside the graph 2026-08-03 20:37:06 +02:00
permissions.rs hive-sh4re: split tool-group + capability enums into their own topic module 2026-08-10 23:05:18 +02:00
questions.rs hive-sh4re: split manager-socket constants + HelperEvent into their own topic module 2026-08-10 23:05:18 +02:00
schedules.rs hive-c0re: replace json! with typed structs in dashboard handlers 2026-08-13 18:12:35 +02:00
state_files.rs hive-c0re: drop redundant METHOD/path prefixes from OpenAPI summaries 2026-08-02 21:35:17 +02:00
state_snapshot.rs hive-c0re: replace json! with typed structs in dashboard handlers 2026-08-13 18:12:35 +02:00
tombstones.rs fix(#3020): K3PT ST4T3 says what it shows, and stops reading the job graph 2026-08-03 18:07:04 +02:00
topology.rs wip(#3001): catch the multi-line .insert( chains the grep missed 2026-08-04 19:57:32 +02:00
webhook.rs hive-sh4re: split approval-queue schema into its own topic module 2026-08-10 23:05:18 +02:00