Hi Prefect,
Running a flow from another flow can be done through
StartFlowRun
. However, this needs a flow being registered prior to calling
StartFlowRun.run()
, which requires Prefect Cloud or server to register the flow.
Is there an alternative to use dependent flows when no prefect Cloud or Server is available (for example when running a unit-test testing the full flow and its dependent flows)?
k
Kevin Kho
05/21/2021, 12:18 PM
Hi @Peter Roelants! I don’t really see any other than flow.run(). You can unit test tasks too with task.run().
p
Peter Roelants
05/21/2021, 12:31 PM
Ok, thanks for verifying.
I'll try mocking
StartFlowRun
to be able to test a full end-to-end test with dependent flows.
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.