Skip to content

Commit

Permalink
Update lsf.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-frantz committed Sep 6, 2024
1 parent 512598f commit 71353e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crankshaft/examples/lsf.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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::<Vec<_>>();

engine.run().await;
Expand Down

0 comments on commit 71353e1

Please sign in to comment.