Skip to content

throw runtime error when no node function is present for early return#167

Merged
raphael-goetz merged 3 commits intomainfrom
#161-rejcet-flow
Apr 17, 2026
Merged

throw runtime error when no node function is present for early return#167
raphael-goetz merged 3 commits intomainfrom
#161-rejcet-flow

Conversation

@raphael-goetz
Copy link
Copy Markdown
Member

Resolves: #161

Copilot AI review requested due to automatic review settings April 17, 2026 15:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an early failure path in the Taurus runtime to reject execution flows that contain zero nodes, addressing issue #161 (“Reject Flows with 0 Nodes to execute”).

Changes:

  • Introduces a guard in handle_message to return Signal::Failure with a RuntimeError when flow.node_functions is empty.
  • Adds the RuntimeError import to support the new failure signal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/taurus/src/main.rs Outdated
Comment thread crates/taurus/src/main.rs Outdated
raphael-goetz and others added 2 commits April 17, 2026 17:28
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>
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>
@raphael-goetz raphael-goetz merged commit d9e6f56 into main Apr 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reject Flows with 0 Nodes to execute

2 participants