From dae1d5f77a0614716397a3d71d35f79423b0f97c Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 18 Mar 2026 20:33:36 +0400 Subject: [PATCH] fix: poll coordinator every 500ms to reduce jitter on 1s intervals --- apps/monitor/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/monitor/src/main.rs b/apps/monitor/src/main.rs index 34468a9..4040e0d 100644 --- a/apps/monitor/src/main.rs +++ b/apps/monitor/src/main.rs @@ -51,7 +51,7 @@ async fn main() -> Result<()> { info!("Shutdown complete"); break; } - _ = sleep(Duration::from_millis(1000)) => { + _ = sleep(Duration::from_millis(500)) => { match runner::fetch_and_run(&client, &coordinator_url, &monitor_token, ®ion, &in_flight).await { Ok(n) => { if n > 0 { info!("Spawned {n} checks"); } }, Err(e) => error!("Check cycle failed: {e}"),