v0.335.0: no app stop for a tier the agent will refuse because its host is busy (host_busy pre-check, R-921)
gates / gates (push) Successful in 53s

This commit is contained in:
admin committed 2026-10-19 20:05:52 +02:00
1 parent db980ff2cc
commit 15ea002458
9 files changed
+282 -13

No files matched your search

+4 -3
View File
@@ -556,9 +556,10 @@ func (l *Loop) quiesceAndPollTiers(ctx context.Context, tiers []dueTier) error {
if len(tiers) == 0 {
return nil
}
// R-921: check first, stop second — a tier the agent will refuse (another tier's job in flight) stops
// no app. Pinned by TestR921_NoStopWhileAnotherTiersJobIsInFlight (precheck.go says what it cannot see).
if l.anotherTierInFlight(ctx, tiers[0].target) {
// R-921: check first, stop second — a tier the agent will refuse (another tier's job in flight, or its
// host-wide gate held) stops no app. Pinned by TestR921_NoStopWhileAnotherTiersJobIsInFlight and
// TestR921_NoStopWhileTheHostIsBusy (precheck.go).
if l.precheckSkips(ctx, tiers) {
return nil
}
running := l.stacks.RunningAppStacks()