UNPKG

node-red-contrib-self-healing

Version:
42 lines (29 loc) 1.02 kB
## Objective A node to delay actions or messages in order to avoid overload ## Details This node can be used to delay a command (message) in order to meet the actuator response capacity. ## The following strategies can be applied: <dl> <dt><b>discard</b></dt> <dd>discards the delayed message</dd> <dt><b>first</b></dt> <dd>sends the first delayed message</dd> <dt><b>last</b></dt> <dd>sends the last delayed message</dd> <dt><b>allByOrder</b></dt> <dd>sends all delayed messages</dd> </dl> ## Inputs <dl> <p>Any type of message</p> </dl> **Note**: If the input message has an cancel field, the current debounce state is reset (clear all messages and reset all timers), considering the input message as the first message. ## Outputs <dl> <dt><b>Execute</b></dt> <dd>Messages that are being sent within the allowed response capacity</dd> <dt><b>Delayed</b></dt> <dd>Messages that are overloading the response capacity</dd> </dl> ## Example Flow ![debouce](../samples/debounce.png)