There is no straightforward way to do it in Prefect 1.0.
- One way to navigate to a child flow run is through logs: within your parent flow run logs, you should see something like this:
Flow run created: https://cloud.prefect.io/anna-prefect/flow-run/d3f27dd8-1e5e-40af-94cf-46766ef080f3
You can copy this URL and navigate it in your browser to see the flow run page of the child flow.
- You may also add
wait_for_flow_runto see child flow run logs directly in the parent flow run logs.
from prefect import Flow from prefect.tasks.prefect import create_flow_run, wait_for_flow_run with Flow("parent_flow") as flow: child_flow_run_id = create_flow_run( flow_name="child_flow_name", run_name="custom_run_name" ) child_flowrunview = wait_for_flow_run( child_flow_run_id, raise_final_state=True, stream_logs=True )
But note that this is not available in the StartFlowRun task. For more, see How can I create a subflow and block until it’s completed?
Orion provides a first-class way to navigate between parent and child flow runs. If you are interested to learn more, check out this livestream recording: Livestream - Orion Subflows and Radar UI - YouTube