Do not arm a scheduled step of a module held as found on an adopted node (hq ADR 0103)

This commit is contained in:
2026-09-22 19:48:05 +02:00
parent da008460ac
commit dc861fb4a8
3 changed files with 68 additions and 7 deletions
+5 -1
View File
@@ -843,7 +843,11 @@ func applyAndKeep(ctx context.Context, opts options, raw []byte, signed *store.D
// declared is forgotten — and after a host restart the first apply rebuilds them all. A nil
// scheduler is the one-shot CLI path, which exits rather than staying up to fire anything.
if sched != nil {
sched.Sync(declared)
held := map[string]bool{}
for _, h := range updated.Held {
held[h.ID] = true
}
sched.Sync(declared, held)
}
report := link.Report{Carried: carriedPorts(updated), Declared: digestOf(raw)}