MCPcopy Create free account
hub / github.com/drogus/crows / start

Function start

cli/src/commands/start.rs:4–22  ·  view source on GitHub ↗
(
    coordinator: &mut CoordinatorClient,
    name: &str,
    workers_number: &usize,
)

Source from the content-addressed store, hash-verified

2use crows_utils::services::CoordinatorClient;
3
4pub async fn start(
5 coordinator: &mut CoordinatorClient,
6 name: &str,
7 workers_number: &usize,
8) -> anyhow::Result<()> {
9 let (run_id, mut worker_names) = coordinator
10 .start(name.to_string(), workers_number.clone())
11 .await
12 .unwrap()
13 .unwrap();
14
15 worker_names.sort();
16
17 drive_progress(coordinator, &run_id, worker_names)
18 .await
19 .expect("Error while running a scenario");
20
21 Ok(())
22}

Callers 1

mainFunction · 0.85

Calls 2

drive_progressFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected