make agent_config_pending async — the sync git fork on every sweep starved the runtime under IO load

This commit is contained in:
damocles 2026-07-02 20:17:00 +02:00 committed by mara
commit cf1f7288bf
2 changed files with 11 additions and 4 deletions

View file

@ -70,7 +70,7 @@ pub async fn build_all(coord: &Coordinator) -> Vec<ContainerView> {
let deployed_full = locked
.get(&format!("agent-{logical}"))
.map(std::string::String::as_str);
let needs_update = crate::auto_update::agent_config_pending(&logical, deployed_full);
let needs_update = crate::auto_update::agent_config_pending(&logical, deployed_full).await;
let deployed_sha = deployed_full.map(|s| s[..s.len().min(12)].to_owned());
let pending_reminders = coord
.broker