Dung Khuc

06/17/2022, 12:05 PM
Is there a neat way to execute undo's in a flow if one task in the chain fails? For example, with this flow:
TaskA: resultA -> TaskB: resultB -> TaskC: resultC
if task B fails, I want to run:
UndoTaskA (resultA)
if task C fails, I want to run:
UndoTaskB (resultB) -> UndoTaskA (result A)

Anna Geller

06/17/2022, 12:10 PM
In Prefect 1.0, there is a feature called Restart from failure in the UI if you want to start your workflow from an arbitrary node in a graph, the recommended way is to use a flow of flows