controller v0.271.0: automatic app updates — the update leg after the off-site copy, the backup gate waits, the switch (09 6.4 part 7; R-680, R-678, R-643)
gates / gates (push) Successful in 24s
gates / gates (push) Successful in 24s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -553,9 +553,13 @@ func (m *Manager) tryUndo(ctx context.Context, name, dir, why string, entry *upd
|
||||
m.recordInstalledImages(name, dir, env)
|
||||
m.removeUndoCopies(name, entry.UndoCopies)
|
||||
m.recordUpdateUndone(name, dir, &UpdateUndone{To: entry.NewPin, At: start.UTC().Format(time.RFC3339), Why: why})
|
||||
m.recordFailedStep(name, dir, entry.NewPin, "undone") // R-680
|
||||
m.removePreUpdateCopies(dir)
|
||||
_ = m.RefreshStatus()
|
||||
m.clearJournal(name)
|
||||
if err := m.ScanStacks(); err != nil { // R-678: the page reads the pin the undo put back
|
||||
m.logger.Printf("[WARN] [stacks] update %s: rescan after the undo failed: %v", name, err)
|
||||
}
|
||||
m.finishUpdate(name, UpdatePhaseUndone, "")
|
||||
m.emitUpdateEvent(UpdateEventUndone, name, entry, UpdateRestorePoint{}, true)
|
||||
m.logger.Printf("[INFO] [stacks] update %s: UNDONE in %s — the previous version is running on the data from before the update (%s)", name, m.now().Sub(start).Round(time.Second), detail)
|
||||
|
||||
Reference in New Issue
Block a user