<#4787 [flyte-bug] Can't retrieve the nodes of a d...
# flytekit
c
#4787 [flyte-bug] Can't retrieve the nodes of a dynamic workflow in an execution by FlyteRemote Issue created by kuni23 ### Describe the bug Hi all! I am trying to reach the nodes of a dynamic workflow in an execution by FlyteRemote, but it is not working. Here are the steps I've taken: Fetch the execution using FlyteRemote:
exec = remote.fetch_execution(project, domain, execution_name)
Retrieve the ID of the dynamic node execution:
dynamic_node_exec_id = remote.client.list_node_executions(exec.id)[0][3].id
Obtain the ID of the dynamic task execution:
dynamic_task_id = remote.client.list_task_executions_paginated(dynamic_node_exec_id)[0][0].id
Attempt to list node executions for the task, but I get an empty list:
spawned_nodes = remote.client.list_node_executions_for_task_paginated(dynamic_task_id)
### Expected behavior Since I have got the task execution of a dynamic workflow, applying the list_node_executions_for_task_paginated should return its node executions in a list according to the documentation of FlyteRemote. ### Additional context to reproduce No response ### Screenshots [image](https://private-user-images.githubusercontent.com/84456950/300404057-14ac482b-aef7-407e-9ecb-a306982e4b54.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQ2OTg0ODAsIm5iZiI6MTc1NDY5ODE4MCwicGF0aCI6Ii84NDQ1Njk1MC8zMDA0MDQwNTctMTRhYzQ4MmItYWVmNy00MDdlLTllY2ItYTMwNjk4MmU0YjU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODA5VDAwMDk0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2YTVkNGQzNzYzMzlmMjc2YzNkODRkZjRhNzYyYzIwMWY3ODZjZmI3MzVjZDBhYzA3YzhjOGUyMjA2NjBkYjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BqgRPDxeRSiILUvR6gT6iY2QEAeli-oK8Z_NFwcyFME) ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte