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

Assymmetric return values not supported by local execution #326

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Jul 8, 2021

I found that asymmetric return values are not supported by flytekit. This is either a regression or the new check revealed a bug. This is only a problem for local execution. Remote works fine.

A reason why this was not noticed is because, the coin toss example is non deterministic. I have now added a seed to the random num generator and have 2 tests, one for each path.

Signed-off-by: Ketan Umare [email protected]

@kumare3 kumare3 requested a review from wild-endeavor as a code owner July 8, 2021 16:38
@@ -222,11 +224,11 @@ def nested_conditions(my_input: float) -> float:
# to be the subset of outputs that all then-nodes produce. In the following example, we call square() in one condition
# and call double in another.
@task
def sum_diff(a: float, b: float) -> (float, float):
def sum_diff(a: float, b: float) -> float:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we change the name and the comment tho?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i am fixing it quickly

@kumare3 kumare3 merged commit b4742d1 into master Jul 8, 2021
EngHabu pushed a commit that referenced this pull request Jul 12, 2021
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