You can set change the state, but generally, you shouldn’t need to, Sunjay, as mentioned in my response to this question in your other thread.
s
Sunjay
11/09/2022, 8:56 AM
Hi @Jeff Hale and @Taylor Curran Thank you so much for your assistance.
if conditions == 'Foo":
a =task1()
else:
"set task1() state to success"
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 doesnt meet a certain condition but the downstream job depends on the success state of the task1 using wait_for parameter.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.