# Stop NodeRed from sending / processing when re-deployed

**URL:** <https://discourse.nodered.org/t/stop-nodered-from-sending-processing-when-re-deployed/9882>\
**Category:** General\
**Created:** [8 April 2019 01:11 UTC](https://discourse.nodered.org/t/stop-nodered-from-sending-processing-when-re-deployed/9882 "2019-04-08T01:11:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inso](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Inso](https://discourse.nodered.org/u/Inso)\
**Post date:** [8 April 2019 01:11 UTC](https://discourse.nodered.org/t/stop-nodered-from-sending-processing-when-re-deployed/9882/1 "2019-04-08T01:11:34Z")

</div>

Hi,

I have a few Smart Home one time events using NodeRed, f.e. a sleep timer, light toggle and so on.  
Problem is, as soon as I re-deploy after changing some stuff, all messages which have been incoming are re-processed, and all outgoing are re-sended: light toggles, sleep and wake up timer start and so on.  
I always thought, a QoS 2 message for example, is meant to only ONCE being processed?

Is there any way to change this behaviour, i.e. just save new notes without re-processing and re-sending?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [8 April 2019 03:59 UTC](https://discourse.nodered.org/t/stop-nodered-from-sending-processing-when-re-deployed/9882/2 "2019-04-08T03:59:41Z")

</div>

Is the `retain flag` on for those devices ?  
Note that you can change the deploy setting to `modified nodes/flows` only.

![42](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8d800ac4bc2f787bfd622fee13c18260269596a4.jpeg)

---

<div class="post-metadata">

**Author:** ![Inso](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Inso](https://discourse.nodered.org/u/Inso)\
**Post date:** [8 April 2019 20:45 UTC](https://discourse.nodered.org/t/stop-nodered-from-sending-processing-when-re-deployed/9882/3 "2019-04-08T20:45:35Z")

</div>

Setting to modified Nodes , and it runs fine now. Thank you very much 😃
