feat(catchup): arm on hello, fire missed-window backups on tick

This commit is contained in:
2026-06-15 21:02:04 +01:00
parent 7aaafceab5
commit 5c4e0275d9
4 changed files with 118 additions and 5 deletions
+1
View File
@@ -227,6 +227,7 @@ func run() error {
}
case <-pendingDrainTick.C:
srv.DrainAllDue(ctx)
srv.RunCatchupsDue(ctx)
case <-pendingExpiryTick.C:
if n, err := st.DeleteExpiredPendingHosts(ctx, time.Now().UTC()); err == nil && n > 0 {
slog.Info("expired pending hosts swept", "n", n)