Unverified Commit 232d09f4 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Collect canary tasks so that they are run in parallel (#1076)

parent 8be4030a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -104,7 +104,8 @@ async fn lambda_main(clients: canary::Clients) -> Result<Value, Error> {
    let canaries = get_canaries_to_run(clients, env);
    let join_handles = canaries
        .into_iter()
        .map(|(name, future)| (name, tokio::spawn(future)));
        .map(|(name, future)| (name, tokio::spawn(future)))
        .collect::<Vec<_>>();

    // Wait for and aggregate results
    let mut failures = BTreeMap::new();