Watch
0
0
Fork
You've already forked hyperhive
0

wip(#3001): rename insert -> insert_job per mara's 50056

This commit is contained in:
atlas 2026-08-04 17:41:15 +02:00 • committed by mara
commit fe52037b0d

View file

@ -216,7 +216,7 @@ pub async fn restart_many(
for agent in agents {
targets.push((agent.clone(), lifecycle::is_running(agent).await));
}
let ids = coord.job_queue.insert(|b| {
let ids = coord.job_queue.insert_job(|b| {
restart_nodes(b, &targets, graceful);
Vec::new()
})?;
@ -245,7 +245,7 @@ pub async fn start_many(coord: &Arc<Coordinator>, agents: &[String]) -> anyhow::
}
targets.push((agent.clone(), running, stale));
}
let ids = coord.job_queue.insert(|b| {
let ids = coord.job_queue.insert_job(|b| {
start_nodes(b, &targets);
Vec::new()
})?;
@ -269,7 +269,7 @@ pub async fn stop_many(
for agent in agents {
targets.push((agent.clone(), lifecycle::is_running(agent).await));
}
let ids = coord.job_queue.insert(|b| {
let ids = coord.job_queue.insert_job(|b| {
stop_nodes(b, &targets, graceful);
Vec::new()
})?;