Hello folks! I’m trying to download outputs of a s...
# flyte-support
t
Hello folks! I’m trying to download outputs of a specific task in a workflow? I know we can do that by using
FlyteRemote.get
, given the node id (e.g.,
n1
,
n2
,
n2-0-dn0
,
n2-0-dn1
, etc). Is there a way of getting those node ids using Python?
f
You can simply use Flyte data uri
t
the code snippets to fetch the input/output data should be available on the UI:
❤️ 1
💯 1
t
Thanks, guys! I was looking for a programmatic way of doing that instead of checking UI. I think this can be challenging since the dynamic nodes are determined at runtime?
t
should be possible. you can retrieve node ids using `list_node_executions`; e.g.,
Copy code
dynamic_node_exec_id = remote.client.list_node_executions(exec.id)[0][3].id
t
Oh, that’s cool! Does it map the node path to the task name? For example, I have nested task paths: •
task1
-> n0 •
task1.subtask1
-> n0-0-dn0 •
task1.subtask2
-> n0-0-dn1
t
the node name depends on the execution order. if
subtask1
runs before
subtask2
, then yes, it should map to
dn0
and
dn1
respectively.
t
Neat! I’ll try that out. Thanks!
@tall-lock-23197 btw, would i be able to retrieve the outputs of the subtasks from previous run, if the parent task is cached?
f
yes
t
Awesome, I’m excited to try it out!