Why failed flow crashes the whole instance in continuous loop?

Hi,
We have a Prefect flow running continuously inside a loop in a background worker (In Render.com):

When the flow fails, it causes the entire instance to crash and restart:

Is there a way to make it so that when the flow fails it doesn’t throw an exception so that the next iteration in the while loop can continue smoothly? Maybe to warp the call to the flow with Try/Except?

Any help would be much appreciated!
Thanks!

Hi, you can use a try/except block to suppress exceptions.
image

1 Like