https://prefect.io logo
a

Alvaro Durán Tovar

05/06/2022, 2:16 PM
Is it possible to set the final state of the flow to the state of one of the intermediate tasks?
k

Kevin Kho

05/06/2022, 2:17 PM
Yeah use:
Copy code
with Flow(...) as flow:
    a = ...

flow.set_reference_tasks([a])
Check this
a

Anna Geller

05/06/2022, 2:45 PM
this was for 1.0, if you need it for 2.0, check this
a

Alvaro Durán Tovar

05/06/2022, 2:47 PM
Amazing, thank you guys!
👍 1
6 Views