# \`DELAY\` node - bug?

**URL:** <https://discourse.nodered.org/t/delay-node-bug/19705>\
**Category:** General\
**Created:** [29 December 2019 11:15 UTC](https://discourse.nodered.org/t/delay-node-bug/19705 "2019-12-29T11:15:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 December 2019 11:15 UTC](https://discourse.nodered.org/t/delay-node-bug/19705/1 "2019-12-29T11:15:41Z")

</div>

I have put a `delay` node in a flow.

For initial testing it was set to a 5 second delay.

When _triggered_ a blue dot would appear under it showing it is _delaying_ the message.

After development of the flow, I reduced it to 1 second.

The _blue dot_ does not appear if the time is set to 1 second.

Bug?

Flow:

```auto
[{"id":"64ac8ced.be6ed4","type":"inject","z":"10045d06.cf6ba3","name":"","topic":"","payload":"Blah","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":1830,"wires":[["ee32b943.6a7888","ed558e08.c2109","957d8f46.630b9","adc537dc.0b548","bbb92b33.d27bf8"]]},{"id":"ee32b943.6a7888","type":"delay","z":"10045d06.cf6ba3","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":1700,"wires":[[]]},{"id":"ed558e08.c2109","type":"delay","z":"10045d06.cf6ba3","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":1760,"wires":[[]]},{"id":"957d8f46.630b9","type":"delay","z":"10045d06.cf6ba3","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":1830,"wires":[[]]},{"id":"adc537dc.0b548","type":"delay","z":"10045d06.cf6ba3","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":1900,"wires":[[]]},{"id":"bbb92b33.d27bf8","type":"delay","z":"10045d06.cf6ba3","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":341.11114501953125,"y":1963.3333740234375,"wires":[[]]}]

```

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [29 December 2019 11:27 UTC](https://discourse.nodered.org/t/delay-node-bug/19705/2 "2019-12-29T11:27:10Z")

</div>

I imagine its a feature 🙂

i.e. anything 1 sec or less - it doesn't bother doing it

I tried 1001 milliseconds and it does show briefly but 1000 doesn't

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 December 2019 11:31 UTC](https://discourse.nodered.org/t/delay-node-bug/19705/3 "2019-12-29T11:31:59Z")

</div>

Thanks for that.

It just threw me as I wasn't sure it was or not delaying the message.

Yes it does work.

The only thing I _don't like_ about that is it makes the node bigger as it goes from displaying `1 second` to `1001 ms`

Not really _neat_ looking.

Could someone involved with this node please comment?  
(Appreciated in advance.)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 December 2019 11:37 UTC](https://discourse.nodered.org/t/delay-node-bug/19705/4 "2019-12-29T11:37:09Z")

</div>

We don’t bother show it for delays less than one sec as it all adds traffic from the backend to the browser. It’s only an indication after all ( the editor is not a dashboard)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [29 December 2019 11:38 UTC](https://discourse.nodered.org/t/delay-node-bug/19705/6 "2019-12-29T11:38:31Z")

</div>

> [@dceejay](#):
>
> the editor is nit a dashboard

Not heard that one before 🙂

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 December 2019 11:42 UTC](https://discourse.nodered.org/t/delay-node-bug/19705/7 "2019-12-29T11:42:02Z")

</div>

No problems.

It just threw me as I wasn't sure the message was delayed. (Done a lot of stuff with it at 5 seconds and when I set it to 1 it didn't show.)

Yes, after a bit of checking: it is delayed.

Just wanted to check what the _status quo_ for the node's operation is/was.

Again: I agree the overhead isn't really needed/wanted and I am sure a few squillion of them would be a problem.

All good. I'll get back to writing the code/flow.

Thanks all.
