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

WIP - Lazy Evaluation #3003

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

WIP - Lazy Evaluation #3003

wants to merge 5 commits into from

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Dec 14, 2024

Tracking issue

NA

Why are the changes needed?

What changes were proposed in this pull request?

How was this patch tested?

from flytekit import task, workflow


@task(container_image="cr.flyte.org/flyteorg/flytekit:py3.10-1.13.0", retries=5, enable_deck=True)
def say_hello() -> str:
    return "Hello, World!"


@workflow
def wf():
    t1 = say_hello()
    t2 = say_hello().with_overrides(cache=True)
    print("t1: ", t1)  # start running t1 here
    print("t2: ", t2)  # start running t2 here

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: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>

local_config = LocalConfig.auto()
# TODO: use node metadata here
print("node_metadata", node_metadata)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use node metadata here

@eapolinario
Copy link
Collaborator

Need to handle the case of the "dangling" node, i.e. how to force the evaluation of nodes that are not an upstream dependency of the graph.

@pingsutw pingsutw marked this pull request as draft December 18, 2024 18:44
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