Hey :smile: Quick question What are the `parent_ta...
# ask-community
e
Hey 😄 Quick question What are the
parent_task_id
keys of the
FlowRun
object pointing to ? It doesn't seem to point to a FlowRun uuid or a Flow uuid 🤔 ?
z
It points to the a task run in the parent flow run that’s used to track the child flow run
i.e. Parent flow run -> Child task run -> Child flow run
The child task run and child flow run always have matching states attached
It’s an implementation detail of how we manage subflows
e
Ok thanks ! Is there a way to easily link a subflow run with its parent run then ?
okay here's the solution i found
Copy code
async with get_client() as client:
    task_run = client.read_task_run(parent_task_id)
parent_flow_run_id = task_run.flow_run_id