Hi flyte comm, i am testing out the conditional statement in workflow and noticed that return values of the conditional values are in reverse order. For example:
@workflow
def child_workflow(username: str) -> tuple[str, str]:
hello_output = hello(username=username)
hello_output1 = hello(username="child_wf")
return hello_output, hello_output1
@workflow
def parent_workflow(in1: int, input_value: str) -> tuple[str, str]:
run_wf = dummy_bool(in1=in1)
return (conditional("run_wf")
.if_(run_wf == True)
.then(child_workflow(username=input_value))
.else_()
.then(child_workflow2(username="conditional_clause")))
if one of the task returns this
return "Jay", "child_wf1"
then the workflow with conditional is returning
o0: Hello, child_wf!
o1: Hello, Jay!
is it intentionally this way or this is a small bug? btw im using
flytekit==v0.26