feat: backup safety — stop-before-dump, streaming restore, health check, per-app restic, infra configs (v0.34.0)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -955,6 +955,15 @@ func (a *stackAdapter) GetStackHDDPath(name string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// RefreshAndIsRunning forces a docker ps scan before checking state.
|
||||
// Called during post-restore health check (~every 5s for up to 90s).
|
||||
// Full refresh is acceptable here since restores are rare operations.
|
||||
func (a *stackAdapter) RefreshAndIsRunning(name string) bool {
|
||||
a.mgr.RefreshStatus()
|
||||
s, ok := a.mgr.GetStack(name)
|
||||
return ok && s.State == stacks.StateRunning
|
||||
}
|
||||
|
||||
// integrationStackAdapter implements integrations.StackProvider using stacks.Manager.
|
||||
type integrationStackAdapter struct {
|
||||
mgr *stacks.Manager
|
||||
|
||||
Reference in New Issue
Block a user