Jay Ganbat
02/23/2022, 10:41 PM@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
Ketan (kumare3)
Jay Ganbat
02/23/2022, 11:01 PMif else
loopKetan (kumare3)
Jay Ganbat
02/24/2022, 4:19 AM