Hi !
I'm starting out with prefect 2 and was wondering if it's possible to create a graph from a flow definition ? And the validate this graph ?
let's say I have the following flow
Copy code
@flow
def my_flow():
a = subflow1(...)
b = subflow2(...)
c = subflow3(a)
Would it be possible to create a graph from this and raise an error because subflow2 is a dangling node ?
p
Peyton Runyan
02/02/2023, 2:08 PM
Howdy!
Prefect flow execution is done dynamically, so we don't establish a DAG ahead of time that can be analyzed. This opens up a lot of use-cases, but makes it a poor match for cases where the graph must be validated ahead of time.
What's your use-case here where you need to know about the dangling node?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.