@Aldemir you could try and use switch nodes to choose one path or the other. But you will have to plan carefully so this will work with your loop.
I do not fully understand what you mean by repair and restart. Though this guide might give you further ideas:
https://docs.knime.com/latest/analytics_platform_flow_control_guide/#introduction