<#986 Set upstream node for branch node> Pull requ...
# flyte-github
c
#986 Set upstream node for branch node Pull request opened by pingsutw Signed-off-by: Kevin Su pingsutw@apache.org TL;DR We didn't set the upstream node for the branch node. Therefore, the DAG of the following example is wrong, from flytekit import task, workflow, conditional @task def square(n: float) -> float: return n * n @task def double(n: float) -> float: return 2 * n @task def t1() -> float: return 3.0 @workflow def wf(my_input: float) -> float: val = t1() return ( conditional("fractions") .if_((my_input >= 0.1) & (my_input <= 1.0)) .then(double(n=val)) .else_() .then(square(n=my_input)) ) Before:

image▾

After:

image▾

For more detail, check https://flyte-org.slack.com/archives/C03CY9S9MFE/p1651262585261169 and https://flyte-org.slack.com/archives/C03CY9S9MFE/p1651307245028089 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 How did you fix the bug, make the feature etc. Link to any design docs etc Tracking Issue https://github.com/flyteorg/flyte/issues/ Follow-up issue NA flyteorg/flytekit