Is there a Prefect 2.0 equivalent for `create_flow...
# ask-community
s
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
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
🙏 1
upvote 1
s
right, that makes sense about subflows.