From ef43139013ff23952bc47af9eefbc2853f14150f Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 17 Apr 2026 16:54:04 +0200 Subject: [PATCH 1/3] feat: throw runtime error when no node function is present for early return --- crates/taurus/src/main.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/taurus/src/main.rs b/crates/taurus/src/main.rs index 46893fa..2f56ee0 100644 --- a/crates/taurus/src/main.rs +++ b/crates/taurus/src/main.rs @@ -19,6 +19,7 @@ use taurus_core::context::context::Context; use taurus_core::context::executor::Executor; use taurus_core::context::registry::FunctionStore; use taurus_core::context::signal::Signal; +use taurus_core::runtime::error::RuntimeError; use tokio::signal; use tokio::time::sleep; use tonic_health::pb::health_server::HealthServer; @@ -41,6 +42,20 @@ fn handle_message( None => Context::default(), }; + if flow.node_functions.len() == 0 { + let duration_millis = start.elapsed().as_millis() as i64; + return ( + Signal::Failure(RuntimeError::simple_str( + "InvlaidFlow", + "This flow has no nodes to execute!", + )), + RuntimeUsage { + flow_id: flow.flow_id, + duration: duration_millis, + }, + ); + } + let node_functions: HashMap = flow .node_functions .into_iter() From 7f7adb7fe23af0c44e33ddc5d35be0338e735538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20G=C3=B6tz?= <52959657+raphael-goetz@users.noreply.github.com> Date: Fri, 17 Apr 2026 17:28:02 +0200 Subject: [PATCH 2/3] Potential fix for pull request finding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com> --- crates/taurus/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/taurus/src/main.rs b/crates/taurus/src/main.rs index 2f56ee0..0bcb4e6 100644 --- a/crates/taurus/src/main.rs +++ b/crates/taurus/src/main.rs @@ -46,7 +46,7 @@ fn handle_message( let duration_millis = start.elapsed().as_millis() as i64; return ( Signal::Failure(RuntimeError::simple_str( - "InvlaidFlow", + "InvalidFlow", "This flow has no nodes to execute!", )), RuntimeUsage { From faae9edf086ff09c7ae7e7c14d2f667d733458bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20G=C3=B6tz?= <52959657+raphael-goetz@users.noreply.github.com> Date: Fri, 17 Apr 2026 17:28:08 +0200 Subject: [PATCH 3/3] Potential fix for pull request finding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com> --- crates/taurus/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/taurus/src/main.rs b/crates/taurus/src/main.rs index 0bcb4e6..ea7932e 100644 --- a/crates/taurus/src/main.rs +++ b/crates/taurus/src/main.rs @@ -42,7 +42,7 @@ fn handle_message( None => Context::default(), }; - if flow.node_functions.len() == 0 { + if flow.node_functions.is_empty() { let duration_millis = start.elapsed().as_millis() as i64; return ( Signal::Failure(RuntimeError::simple_str(