I'm back with another question, having a hard time finding anything in the docs or slack regarding this: Is there an equivalent to the old StartFlowRun or the newer create_flow_run in Prefect 2.0? Or some other way of having a flow run a subflow without knowing about it beforehand (since it's deployed in a separate docker container)?
✅ 1
m
Mathijs Carlu
08/02/2022, 11:56 AM
You can also create_flow_run_from_deployment, but that's just a simpler version of create_flow_run I think. Why do you need another way?
o
Oscar Björhn
08/02/2022, 12:18 PM
According to the documentation, create_flow_run_from_deployment appears to be a part of the orion api.. Can I still run it from my client? I wasn't sure how this api is meant to be used, perhaps it'll do fine for my use case.
I want my main flow to be able to run subflows without knowing about them beforehand, other than by name. Previously we used StartFlowRun for this, since the code was written before create_flow_run existed, but neither seem to be in Prefect 2, although similarly named functions exist, like the one you mentioned.
Oscar Björhn
08/02/2022, 12:25 PM
I think the function you mentioned should be just what I need. Thanks again, next time I should just ask you directly. 😉
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.