From e8cbb6362751fa033be0249afbfaeadd8175eeda Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 8 Jun 2022 15:19:59 +0200 Subject: [PATCH] Only require runtime executable when there is a runtime node declared --- coordinator/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coordinator/src/main.rs b/coordinator/src/main.rs index b4879624..382e1617 100644 --- a/coordinator/src/main.rs +++ b/coordinator/src/main.rs @@ -52,7 +52,7 @@ async fn run_dataflow(dataflow_path: PathBuf, runtime: &Path) -> eyre::Result<() ) })?; - if !runtime.is_file() { + if nodes.iter().any(|n| matches!(n.kind, NodeKind::Runtime(_))) && !runtime.is_file() { bail!( "There is no runtime at {}, or it is not a file", runtime.display()