Sunjay
11/08/2022, 2:14 PMPeyton Runyan
11/08/2022, 2:50 PMSunjay
11/08/2022, 4:07 PMJeff Hale
11/08/2022, 6:40 PMSunjay
11/15/2022, 12:08 PMif conditions == 'Foo":
a = task1()
else:
"set task1() state to success" #i.e skip execution of task1()
b= task2() # task 2 wait_for the completed state of task1
So this is what I want to achieve in essence. I just wanted to know how to set the task1 state to completed as it can be skipped in case it doesn't meet a certain condition but the downstream job depends on the success state of the task1 using wait_for parameter.Jeff Hale
11/15/2022, 1:43 PMdef flow1(x):
if x == "Foo":
a = task1()
else:
a = "didn't run task1"
b = task2()
if a != "didn't run task1" and b:
# do something
Sunjay
11/15/2022, 2:53 PM