Rupsha Chaudhuri
06/13/2022, 6:03 PMKetan (kumare3)
if true:
A()
B()
else:
# do nothin
is it like this
if true:
A()
B()
Rupsha Chaudhuri
06/13/2022, 7:54 PMvariable c_out = C()
if true:
A(c_out=c_cout)
A started running before C was done. Is that expected?Ketan (kumare3)
from flytekit import task, workflow, conditional
@task
def foo():
print("Called")
@task
def foo2():
print("Called")
@workflow
def wf(b: bool):
c = conditional("blah").if_(b.is_true()).then(foo()).else_().fail("haha")
c >> foo()
Rupsha Chaudhuri
06/13/2022, 11:22 PMKetan (kumare3)
Kevin Su
06/14/2022, 5:19 AMc >> foo()
without creating node
foo_node = create_node(foo)
c >> foo_node
Rupsha Chaudhuri
06/14/2022, 4:23 PM