How to recall node when there is error

Hi, I have workflow and I have in it python’s files, I want to retry to call node if that node get an exception, I try to throw (with sys.exit) but I couldn’t get a different exit code than 0, I read about “error trigger” and I didn’t get it to work properly, does anybody encounter this scenario, maybe I need different approch

If you want to retry the execution of any node you can use the Retry On Fail setting for this:

image

See the docs for more information on the available settings. Keep in mind that Retry On Fail won’t make sense combined with the Continue On Fail setting.