# Add autoreset option to delay node

**URL:** <https://discourse.nodered.org/t/add-autoreset-option-to-delay-node/89811>\
**Category:** General\
**Created:** [27 July 2024 10:10 UTC](https://discourse.nodered.org/t/add-autoreset-option-to-delay-node/89811 "2024-07-27T10:10:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiovanniG](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Post date:** [27 July 2024 10:10 UTC](https://discourse.nodered.org/t/add-autoreset-option-to-delay-node/89811/1 "2024-07-27T10:10:45Z")

</div>

Hi, often it happens to me that I need to deay a message, but if another event happens I have to push in the same delay node the new message, and I need to delete the previous one. If I don't send a reset:1 before sending the new message I'll have 2 queues in the delay node, and I don't want this.  
To be sure only the previous message is delayed I always add an extra delay node on the flow, to delay the new message after a reset:1. So, briefly, in the function node I need to add an extra output which sends a reset:1, and on the main output a fixed delay node (like 10 milliseconds), that push the new message.  
It would be lovely to have an option on delay node "when a new message is incoming, forget the one before waiting to be outputed".  
Or maybe there is anothe way? Thanks

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [27 July 2024 10:56 UTC](https://discourse.nodered.org/t/add-autoreset-option-to-delay-node/89811/2 "2024-07-27T10:56:58Z")

</div>

Does the trigger node work for this?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/a/ca38fe98ed9eebb13dbc72ff56f9ea16ddb03094.png)

---

<div class="post-metadata">

**Author:** ![GiovanniG](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Post date:** [30 July 2024 19:47 UTC](https://discourse.nodered.org/t/add-autoreset-option-to-delay-node/89811/3 "2024-07-30T19:47:16Z")

</div>

thanks, trigger is very powerful node! I have to keep that in mind

---

<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:** [13 August 2024 19:47 UTC](https://discourse.nodered.org/t/add-autoreset-option-to-delay-node/89811/4 "2024-08-13T19:47:17Z")

</div>

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