Hi all!
We're using Prefect version 0.14.17 and have an issue with running a flow from within another in a python script. I used the following from the docs:
Copy code
from prefect import Flow
from prefect.tasks.prefect import create_flow_run, wait_for_flow_run
with Flow("parent-flow") as flow:
# Create the child flow run, look up the flow by name
child_run_id = create_flow_run(flow_name="gotta-run-flow")
and got this:
ImportError: cannot import name 'create_flow_run' from 'prefect.tasks.prefect' (/usr/local/lib/python3.8/site-packages/prefect/tasks/prefect/__init__.py)
Could someone please assist? Thanks!
k
Kevin Kho
06/01/2022, 5:35 PM
create_flow_run
is 0.15.0 and up. That version has
StartFlowRun
though
f
Frederick Thomas
06/01/2022, 5:39 PM
Hi Kevin! What is the import path or documentation?
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.