fix: poll coordinator every 500ms to reduce jitter on 1s intervals
This commit is contained in:
parent
f9826fbbe4
commit
dae1d5f77a
|
|
@ -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}"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue