Sumant Agnihotri
06/01/2020, 12:33 PMif inside flow like this:
def flow_func(ip):
with Flow('flow func') as flow:
task1()
if ip == True:
task2()emre
06/01/2020, 12:40 PMip , your flow will contain or not contain task2 . This wouldn’t work if you derived the value of ip from within a task, for ex. ip = task1() . Because tasks aren’t run, therefore their results are unknown, before flow.run() is called.Steve Taylor
06/01/2020, 12:58 PMJeremiah
task2. If your goal is to always have task2, but only run it sometimes, you’ll need to use a Prefect control-flow statement like the one @Steve Taylor mantioned.Jeremiah
Steve Taylor
06/01/2020, 1:51 PMJeremiah