wip(#3001): rename insert -> insert_job per mara's 50056
This commit is contained in:
parent
102ebdc03d
commit
fe52037b0d
7 changed files with 24 additions and 27 deletions
|
|
@ -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()
|
||||
})?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue