Watch
0
0
Fork
You've already forked hyperhive
0

auto-update: a rebuild is live until its whole subtree is terminal

rebuild_live checked only MetaSync, which finishes in 0.2 s, so the next
5-min pass queued a second rebuild while the first still held the stop,
swap and start. It now covers MetaSync, AgentWindow, Prebuild,
StopForUpdate, Swap and RebuildBookkeeping. AgentWindow is also the brace
of a pause window, so an open pause skips that agent's pass too; the docs
say so and a test pins it.
This commit is contained in:
atlas 2026-11-19 00:48:25 +01:00 • committed by mara
commit 12e797e7e3

View file

@ -161,6 +161,24 @@ impl NodeKind {
}
}
/// Whether this node is a rebuild step: the preamble, the `AgentWindow`
/// brace and the steps under it. `AgentWindow` is also the brace of a pause
/// window (`templates::pause_quiesce`), so a pause counts as well. The tail
/// `Reconcile` and the quiesce nodes are not listed, because power DAGs
/// declare them too.
#[must_use]
pub fn is_rebuild_step(&self) -> bool {
matches!(
self,
NodeKind::MetaSync { .. }
| NodeKind::AgentWindow { .. }
| NodeKind::Prebuild { .. }
| NodeKind::StopForUpdate { .. }
| NodeKind::Swap { .. }
| NodeKind::RebuildBookkeeping { .. }
)
}
/// Whether running this node is *expected* to take the agent's container
/// down. Feeds `RunningTransient::takes_container_down`, which the crash watcher
/// reads to tell an intentional stop from a crash.