perf: skip missed ticks on all intervals, reduce scan frequency

Prevents burst of health checks, scans, and snapshots after slow
podman responses by using MissedTickBehavior::Skip. Bumps container
scan interval from 30s to 60s to reduce DB lock contention.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-04-07 20:25:09 +01:00
co-authored by Claude Opus 4.6
parent 5ae60e83ae
commit 9d1baf75d5
4 changed files with 9 additions and 2 deletions
+1
View File
@@ -29,6 +29,7 @@ pub fn spawn_metrics_collector(
tokio::time::sleep(std::time::Duration::from_secs(60)).await;
let mut interval = tokio::time::interval(std::time::Duration::from_secs(300));
interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);
loop {
interval.tick().await;