Skip to content

Commit

Permalink
feat: hammer lsf (#26)
Browse files Browse the repository at this point in the history
* Update lsf.rs

* Update lsf.rs

* Update lsf.rs

* Update lsf.rs
  • Loading branch information
a-frantz authored Sep 6, 2024
1 parent a886a62 commit fb3c076
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crankshaft/examples/lsf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ async fn main() {
.expect("at least one generic backend config to be present in the config");

let backend = GenericBackend::try_from(config).expect("parsing the backend configuration");
let mut engine = Engine::default().with_backend("generic", backend.to_runner());
let mut engine = Engine::empty().with_backend("generic", backend.to_runner());

let task = Task::builder()
.name("my-example-task")
.description("a longer description")
.extend_executions(vec![Execution::builder()
.working_directory(".")
.image("ubuntu")
.args(&[String::from("echo"), String::from("'hello, world!'")])
.args(&[String::from("echo"), String::from("'hello world from LSF'")])
.stdout("stdout.txt")
.stderr("stderr.txt")
.try_build()
.unwrap()])
.try_build()
.unwrap();

let receivers = (0..1000)
let receivers = (0..10000)
.map(|_| engine.submit("generic", task.clone()).callback)
.collect::<Vec<_>>();

Expand Down

0 comments on commit fb3c076

Please sign in to comment.