Hi all, I’m having an issue with error handling in...
# questions
g
Hi all, I’m having an issue with error handling in the pipeline. I want it to fail and stop execution when an error happens (so I get a notification), but most of the time, it just raises the error, shows the "restart from nodes" message, and keeps going—even though the nodes aren't actually running. How can I make it stop completely after any error, whether it’s loading, saving, timeout, etc.? After the error, I usually get this message:
Copy code
You can resume the pipeline run from               
                             the nearest nodes with persisted                   
                             inputs by adding the following                     
                             argument to your previous command:
Then it moves on to the next node instead of stopping the execution. I’ve tried using both the
on_node_error
and
on_pipeline_error
hooks, but no luck so far. Any ideas?
h
Someone will reply to you shortly. In the meantime, this might help:
m
Hi @Gianni Giordano, so to clarify the issue is that after a node fails the pipeline keeps executing? What runner are you using?
g
the default one: SequentialRunner
m
And in what way is your node failing? The default behaviour for
SequentialRunner
is that the pipeline run will stop immediately after a node failure, so it's strange that's not what you're experiencing.