# \[Feature Request\]Add msg.flush to trigger as per delay node

**URL:** <https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549>\
**Category:** Feature Requests\
**Created:** [11 November 2021 07:57 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549 "2021-11-11T07:57:54Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [11 November 2021 07:57 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/1 "2021-11-11T07:57:54Z")

</div>

The msg.flush has proved very useful for the delay node and it would be handy to have it in the trigger node as well

I'm thinking on msg.flush=true, it should do the pre-configured 2nd action

---

<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:** [15 November 2021 08:21 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/2 "2021-11-15T08:21:55Z")

</div>

mm - this might be a bit more complex than I first thought

I made up this to simulate a flush  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/b/3b625dc1820d21aec7705d7ce41f22804551ad4c.jpeg)  
_Sends 5000 as payload and also uses it to set msg.delay - pressing flush inject resets trigger and re-sends the message payload_

_I should really store/re-send whole msg but this does as a demo_

But this doesn't actually do what I specified in the original FR as it flushes the original msg thru as opposed to doing whatever action is specified for the 2nd action in the trigger node

But it does actually "flush" like what the delay node does and I'm sure someone would find this action useful so can we have it as well please? 🙂

So I'm thinking that maybe my request needs to respond to a msg.complete=true (or some other word)

---

<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:** [15 November 2021 11:56 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/3 "2021-11-15T11:56:18Z")

</div>

so is there an actual use case for this - or just "it may be useful" ?

---

<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:** [15 November 2021 12:41 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/4 "2021-11-15T12:41:55Z")

</div>

Yes 🙂  
I'm normally delaying a message using a trigger node for around 10 minutes but sometimes want to curtail that time and release the stored message without having to wait till the end of msg.delay

Using a trigger and not the delay node as I want to extend the delay if a new message comes in

Its a cheerlight bot to send new cheerlight tweet if no activity for past 10 minutes

---

<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:** [15 November 2021 13:11 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/5 "2021-11-15T13:11:59Z")

</div>

delaying a message ? why not use the delay node ?

---

<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:** [15 November 2021 14:14 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/6 "2021-11-15T14:14:35Z")

</div>

> [@cymplecy](#):
>
> Using a trigger and not the delay node as I want to extend the delay if a new message comes in

Is there a mode usage of the delay node that will do that?

---

<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:** [14 January 2022 14:14 UTC](https://discourse.nodered.org/t/feature-request-add-msg-flush-to-trigger-as-per-delay-node/53549/7 "2022-01-14T14:14:42Z")

</div>

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