https://prefect.io logo
r

Richard Pitre

06/01/2020, 12:04 AM
I have the same task running at different node of my graph. Now I have a task that must run after one of them is finish. How can I setup this dependency. I am using the Flow framework
j

Jeremiah

06/01/2020, 12:06 AM
Hi @Richard Pitre, you can use
y.set_upstream(x)
to create what we call a “state dependency” from task x to task y. This will enforce that y shouldn’t start until x finishes