# Delay node behaviour change on reset message

**URL:** <https://discourse.nodered.org/t/delay-node-behaviour-change-on-reset-message/82154>\
**Category:** General\
**Created:** [18 October 2023 10:01 UTC](https://discourse.nodered.org/t/delay-node-behaviour-change-on-reset-message/82154 "2023-10-18T10:01:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![borpin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/borpin/32/1765_2.png) [@borpin](https://discourse.nodered.org/u/borpin)\
**Post date:** [18 October 2023 10:01 UTC](https://discourse.nodered.org/t/delay-node-behaviour-change-on-reset-message/82154/1 "2023-10-18T10:01:49Z")

</div>

I have been using a delay node for a while to rate limit messages. On a specific event, I send a message `msg.reset`.

I have just done an update and now when I send the reset message, that message gets sent.

Is this expected behaviour?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 October 2023 10:38 UTC](https://discourse.nodered.org/t/delay-node-behaviour-change-on-reset-message/82154/2 "2023-10-18T10:38:34Z")

</div>

1. how have you got the `delay` node configured?
2. What version of NR and you running (see startup log)
3. Please provide a small test flow showing the issue

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [18 October 2023 11:17 UTC](https://discourse.nodered.org/t/delay-node-behaviour-change-on-reset-message/82154/3 "2023-10-18T11:17:43Z")

</div>

I raised this issue,

It has since been fixed, but not sure if its released yet, but its already known (and is fixed in code)

> [@Has something changed with the delay node?](https://discourse.nodered.org/t/has-something-changed-with-the-delay-node/81221):
>
> Hello everyone, its been a while sweat_smile This finding is prior to 3.1 (i'm sure it is), but Mrs Davies keeps bringing it up, because of the effect its having with automation. I have noticed the delay node WILL pass a message that has msg.reset if: Its set to rate limit There is no other message being held. I believe this is behaviour that started maybe 1-2 versions ago? See below for a demo. If this is expected (new behaviour or otherwise) then cool, but not sure if this was intende…

> <https://github.com/node-red/node-red/issues/4337>
>
> \### Current Behavior
> 
> When the delay node is configured as.
> 
> - Rate Limit
> … 
> And
>  
> - No messages are currently held back.
>   
> 
> Messages containing \`msg.reset\` are being passed through 
> 
> \### Expected Behavior
> 
> It appears this is new behaviour, and previously, \`msg.reset\` has never been passed through, as it should be a control message.
> 
> I'm unsure if this is now expected behaviour, or something has gone pop! 
> 
> \### Steps To Reproduce
> 
> - Set Delay node to \`Rate Limit\`
> - send it a message with \`msg.reset\`
>  
> See that it passes the messages through.
> 
> \### Example flow
> 
> \`\`\`
> \[{"id":"847f3a065f5f8cdd","type":"tab","label":"Flow 1","disabled":false,"info":"","env":\[\]},{"id":"b0f341d4815fa7ea","type":"debug","z":"847f3a065f5f8cdd","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1115,"y":100,"wires":\[\]},{"id":"a4a9b730b905294c","type":"delay","z":"847f3a065f5f8cdd","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"hour","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":910,"y":100,"wires":\[\["b0f341d4815fa7ea"\]\]},{"id":"351578f6dd252a3f","type":"inject","z":"847f3a065f5f8cdd","name":"reset","props":\[{"p":"reset","v":"true","vt":"bool"}\],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":680,"y":220,"wires":\[\["a4a9b730b905294c"\]\]},{"id":"c944b4bae18a02ea","type":"inject","z":"847f3a065f5f8cdd","name":"","props":\[{"p":"payload"}\],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":680,"y":100,"wires":\[\["a4a9b730b905294c"\]\]}\]
> \`\`\`
> 
> 
> \### Environment
> 
> \- Node-RED version: 3.1.0 (but I cant help thinking I noticed this change a little before)
> 
> Not at my workstation currently, but this is discussed below also:
> 
> https://discourse.nodered.org/t/has-something-changed-with-the-delay-node/81221

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 November 2023 11:18 UTC](https://discourse.nodered.org/t/delay-node-behaviour-change-on-reset-message/82154/4 "2023-11-01T11:18:09Z")

</div>

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