fix: poll coordinator every 500ms to reduce jitter on 1s intervals

This commit is contained in:
nate 2026-03-18 20:33:36 +04:00
parent f9826fbbe4
commit dae1d5f77a
1 changed files with 1 additions and 1 deletions

View File

@ -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, &region, &in_flight).await {
Ok(n) => { if n > 0 { info!("Spawned {n} checks"); } },
Err(e) => error!("Check cycle failed: {e}"),