Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iterable node executions #3161

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

iterable node executions #3161

wants to merge 1 commit into from

Conversation

troychiu
Copy link
Member

Tracking issue

Why are the changes needed?

What changes were proposed in this pull request?

How was this patch tested?

You can easily traverse nodes like

a = remote.sync(execution, sync_nodes=True)
def traverse_node(node: FlyteNodeExecution, level=0):
    print("-" * level, " " if level else "", node.id.node_id, sep="")
    for sub_node in node:
        traverse_node(sub_node, level+1)

for node in a.node_executions_list:
    traverse_node(node)

Example output:

n0
- n0-0-n0
- n0-0-n1
- n0-0-n2
- n0-0-n3
-- n0-0-n3-0-dn0
n1
n2
n3

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Troy Chiu <[email protected]>
@flyte-bot
Copy link
Contributor

Code Review Agent Run Status

  • Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants