https://prefect.io logo
Title
s

scott

12/13/2022, 9:40 PM
Is there a Prefect 2.0 equivalent for
create_flow_run
in Prefect 1.0 https://docs-v1.prefect.io/api/latest/tasks/prefect.html#create-flow-run ? Trying to translate to prefect 2, and this method
create_flow_run
is somewhat confusing - a task that creates a flow within a flow?
1
m

Mike Grabbe

12/13/2022, 9:42 PM
You can call a flow (as a subflow) from inside another flow. This will run within the same infrastructure as the parent flow.
:upvote: 1
You can also use the
run_deployment
method to run your flow inside other infrastructure (another container, for example)
🙌 1
:thank-you: 1
:upvote: 1
s

scott

12/13/2022, 9:43 PM
right, that makes sense about subflows.