https://prefect.io logo
Title
l

Luke

02/01/2023, 9:17 PM
hi! I've implemented an orchestration approach following this tutorial, but the worker flow runs that are kicked off by the orchestrator flow don't show up as sub-flows in the UI under the orchestrator flow. What change would I want to make to connect the worker flows as sub-flows to the orchestrator flow? https://github.com/PrefectHQ/prefect-recipes/blob/main/flows-advanced/parent-orchestrator/orchestrating-worker-flows.py
n

Nate

02/01/2023, 9:31 PM
Hi @Luke I've been meaning to update this recipe - I'll try to do that soon Instead of using the client directly like in this recipe, you can use
run_deployment
within
submit_subflow
and then those flow runs will be tracked as subflows you can import
run_deployment
like
from prefect.deployments import run_deployment
(which is not a task, but might be convenient to wrap in a task so you can use map)
l

Luke

02/01/2023, 9:32 PM
thanks!
n

Nate

02/01/2023, 9:32 PM
sure!