# prefect-community

Gintautas Jankus

09/13/2022, 11:13 AM
Hi, I'm having some trouble to understand how to better restart subflow tasks, thought to ask for some help :) Here is situation: I have flow which contains subflow tasks. Subflow D has upstream of two subflows A and B. They all have wait_for_flow tasks. If for example subflow A fails, I want in prefect UI restart all subflow D downstream from where it failed. But now if I try to restart in UI it will start to restart subflow A wait_for_flow task without running subflow A task itself and it will be stuck waiting. So my question how to better restart subflow D downstream(including subflow A) without restarting subflow C and B?
Here is visual representation:

Mason Menges

09/13/2022, 7:30 PM
Hey @Gintautas Jankus I think this discourse article might have what you're looking for
🙌 1

Gintautas Jankus

09/14/2022, 6:48 AM
Great, thank you! This is what I was looking for 😉