make agent_config_pending async — the sync git fork on every sweep starved the runtime under IO load
This commit is contained in:
parent
3d5957c87b
commit
cf1f7288bf
2 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue