Nace Plesko

10/12/2022, 1:14 AM
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
, 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
Failed to load and execute flow run: ValueError('No flows found in file.')
and previously I was getting a bunch of
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?

Rob Freedy

10/12/2022, 2:02 PM
Hey @Nace Plesko! Are you able to share a minimal example of your code? This example in discourse may be helpful: