How to program flow to redeploy itself?


I have an issue with node-red-contrib-iiot-opcua and node-red-contrib-opcua. From time to time when my OPC-UA server has to be rebooted, the client nodes fail to reconnect, leaving the node in error. Only redeploying the flow fixes it.

Is there a way to program a function which would be something like this?
if(msg.playload.indexOf('Error')!= -1){ REDEPLOY FLOW }

I think the better solution would be fixing the node in question instead of working around these problems.

If the node is maintained on Github, you could open an issue there.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.