Error handling in flows
There are multiple ways to handle errors in Windmill flows: retries, error handlers, and early stop/break.
Error handler
The Error handler is a special flow step that is executed when an error occurs within a flow.
If defined, the error handler will take as input the result of the step that errored (which has its error in the 'error field').
Retries
Steps within a flow can be retried a specified number of times and at a defined frequency in case of an error.
Example of a flow step giving error if random number = 0 and re-trying 5 times
Early stop / Break
The Early stop/Break feature allows you to define a predicate expression that determines whether the flow should stop early at the end or before a step.
Custom timeout for steps and flows
For each step can be defined a timeout. If the execution takes longer than the time limit, the execution of the step will be interrupted.
A flow timeout caps the whole run, sleeps and approvals included, and runs the error handler, if the flow has one, when it is reached.
Error handling
For more details on Error handling, see: