(
coordinator: &mut CoordinatorClient,
name: &str,
workers_number: &usize,
)
| 2 | use crows_utils::services::CoordinatorClient; |
| 3 | |
| 4 | pub 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 | } |
no test coverage detected