Is there a neat way to execute undo's in a flow if...
# prefect-community
d
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)
a
In Prefect 1.0, there is a feature called Restart from failure in the UI https://docs.prefect.io/orchestration/ui/task-run.html#overview if you want to start your workflow from an arbitrary node in a graph, the recommended way is to use a flow of flows