Hello, I have a question around using flytekit to ...
# flyte-support
b
Hello, I have a question around using flytekit to fetch task execution of a task within a subworkflow. edit: Think i found a way already, thanks
Im using
flytekit.clients.friendly.SynchronousFlyteClient
but is unable to get the task execution of a task in a subworkflow. Using this example, there is a tasks
n0
and subworkflow
n1
that runs
n1-0-n0
list_node_executions
- Get the list of node execution for a given execution (returns
n0
and
n1
, was expecting
n1-0-n0
but it wasn't returned)
list_task_executions_paginated
- Get task execution for given execution. Works fine for
n0
but returns empty for `n1`(subworkflow). If i query with
n1-0-n0
I can get the task execution details. Are there any API that will tell me that this execution has a node
n1-0-n0
?
I would like to query the task execution of this, from a given execution.
found that
NodeExecution
has metadata with field
is_parent_node
. Could query
list_node_executions
with
unique_parent_id=node_id
if it is a parent node, to get the child NodeExecutions