Hello,
I use the example below quite a lot when monitoring that my external services are a live and running. Without going into details of this special service, I wonder if it would be a good option for the trigger to being able to resend the out message to it's input?
The example below works as follow:
- the external (Weather) service is expected to deliver required data at some defined interval to a mqtt topic
- if this fails, the trigger node restarts the service and informs the user (me) that this has happened via Telegram
Now, if the restart would fail, a second service restart attempt would not happen so there's the reason for the function node passing the output message back to the input. Restarts would then continue (forever) until the service starts & runs properly again
The function node is just the default, returning the incoming msg