From 71353e10e8376a62672bd22d499f0b83782ec8c1 Mon Sep 17 00:00:00 2001 From: Andrew Frantz Date: Fri, 6 Sep 2024 14:13:41 -0400 Subject: [PATCH] Update lsf.rs --- crankshaft/examples/lsf.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crankshaft/examples/lsf.rs b/crankshaft/examples/lsf.rs index ede825b..94ab4da 100644 --- a/crankshaft/examples/lsf.rs +++ b/crankshaft/examples/lsf.rs @@ -1,4 +1,4 @@ -//! An example for runner a task using the Docker backend service. +//! An example for runner a task using the generic LSF backend service. use crankshaft::engine::task::Execution; use crankshaft::engine::Engine; @@ -45,8 +45,11 @@ async fn main() { .try_build() .unwrap(); - let receivers = (0..10) - .map(|_| engine.submit(task.clone()).callback) + let receivers = (0..1000) + .map(|i| { + println!("Submitting task number: {}", i); + engine.submit(task.clone()).callback + }) .collect::>(); engine.run().await;