fix(catchup): guard on real in-flight backup check; add scheduler tests

This commit is contained in:
2026-06-15 21:45:01 +01:00
parent 10b2518323
commit 9371b7b777
4 changed files with 275 additions and 2 deletions
+3
View File
@@ -240,6 +240,9 @@ func (e *Engine) tick(ctx context.Context, now time.Time) {
e.raiseAndNotify(ctx, h.ID, KindStaleSchedule, "", "warning",
fmt.Sprintf("No backup in %s (threshold %s)",
roundDur(now.Sub(*h.LastBackupAt)), staleBackupThreshold), now)
// Resolution is handled in handleJobFinished on a successful
// backup (and ResolveOnModeChange on toggle) — the tick only
// raises, it does not auto-resolve.
continue
}
// Always-on hosts: existing agent_offline re-evaluation.