Why failed flow crashes the whole instance in continuous loop?

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!

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

1 Like