I'm trying to kick off a flow from within a flow i...
# prefect-community
n
I'm trying to kick off a flow from within a flow in Prefect v1 and I can't figure out why it's not working. At first I had the flows in separate files and I thought that was the issue, then I combined them in the same file, trying
StartFlowRun
and
create_flow_run
, like it's in the docs and for some reason I'm running in a bunch of errors when executing the flow, but none when registering it. Right now I'm getting
Copy code
Failed to load and execute flow run: ValueError('No flows found in file.')
and previously I was getting a bunch of
Copy code
Failed to load and execute flow run: KeyError("'__name__' not in globals")`
I feel like I am missing something extremely obvious about executing a flow from within a flow that it's not even documented?
r
Hey @Nace Plesko! Are you able to share a minimal example of your code? This example in discourse may be helpful: https://discourse.prefect.io/t/how-can-i-create-a-subflow-and-block-until-it-s-completed/94#prefect-10-2