chore(#2400): skip the prebuild warm-build when the container is down

This commit is contained in:
damocles 2026-07-13 16:12:40 +02:00 committed by mara
commit 4be2279485
2 changed files with 21 additions and 5 deletions

View file

@ -68,7 +68,10 @@ pub enum NodeKind {
/// meta `sync_agents`, optional per-agent relock, then
/// `lifecycle::prebuild_toplevel`. `relock = false` only for
/// meta-update cascade rebuilds (re-locking would revert the bump
/// the cascade just committed).
/// the cascade just committed). The `prebuild_toplevel` warm is
/// skipped when the container is already down — it only exists to
/// shrink the swap's downtime, which a stopped agent doesn't need
/// (the sync + dir prep still run; `Swap` builds inline).
Prebuild { relock: bool },
/// `nixos-container update` profile-swap (requires the container
/// stopped). Re-applies nspawn flags + resource limits first —