Skip to content

Early exit node/graph #37

@ImLucasBrown

Description

@ImLucasBrown

Is your feature request related to a problem? Please describe.
Ability to cleanly exit a node or entire build.

Describe the solution you'd like
Lucas:

Something like return in the code block to early exit the node's execution.
Something like exit() or halt() to gracefully stop the graph from executing.
Currently these can be handled with crazy indentation and raising an exception (respectively).

Michael:

I like something explicitly nxt oriented for stopping the full graph. like graph_stop(). What are the ramifications for sub graphs? Does this only halt local subgraph or full super graph? Additionally can there(should there?) be ways to skip hierarchy stop_siblings() or skip_descendants()?

Metadata

Metadata

Assignees

Labels

requestNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions