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

Add support chain multiple tasks #1222

Merged
merged 2 commits into from
Oct 6, 2022
Merged

Add support chain multiple tasks #1222

merged 2 commits into from
Oct 6, 2022

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Oct 5, 2022

Signed-off-by: Kevin Su pingsutw@apache.org

TL;DR

Add support chain multiple tasks by returning other when calling rshift

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

image

Tracking Issue

flyteorg/flyte#2955

Follow-up issue

NA

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Merging #1222 (804cd22) into master (0bd3261) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1222   +/-   ##
=======================================
  Coverage   68.57%   68.58%           
=======================================
  Files         288      288           
  Lines       26225    26232    +7     
  Branches     2929     2929           
=======================================
+ Hits        17985    17992    +7     
  Misses       7762     7762           
  Partials      478      478           
Impacted Files Coverage Δ
flytekit/core/node.py 53.76% <100.00%> (+0.50%) ⬆️
flytekit/core/promise.py 51.95% <100.00%> (+0.17%) ⬆️
tests/flytekit/unit/core/test_node_creation.py 95.79% <100.00%> (+0.07%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -678,6 +679,7 @@ def ref(self) -> NodeOutput:
def __rshift__(self, other: typing.Union[Promise, VoidPromise]):
if self.ref:
self.ref.node.runs_before(other.ref.node)
return other
Copy link
Contributor

Choose a reason for hiding this comment

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

haha bug.

Copy link
Collaborator

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

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

This is awesome. Thank you!

@pingsutw pingsutw merged commit 605639a into master Oct 6, 2022
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.

4 participants