# Execution of a flow before NR shutdown?

**URL:** <https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415>\
**Category:** General\
**Created:** [20 July 2020 19:30 UTC](https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415 "2020-07-20T19:30:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [20 July 2020 19:30 UTC](https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415/1 "2020-07-20T19:30:07Z")

</div>

Execution of a flow before NR shutdown? I thought I saw a forum thread on this? But I can't seem to find it, so maybe this is not possible currently?

Since I am running a primary and secondary NR setup, not a cluster, no transparent fail-over type of thing. Just stop and start of services as applicable.

It would be nice to implement the graceful fail-over and recovery logic in NR as much as possible. But could just do it external to NR, since the non-graceful control will be external to NR anyway.

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [20 July 2020 21:46 UTC](https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415/2 "2020-07-20T21:46:20Z")

</div>

There was [this topic](https://discourse.nodered.org/t/node-redundancy/10762) about redundancy.  
Is that what you was looking for?

---

<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:** [20 July 2020 21:58 UTC](https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415/3 "2020-07-20T21:58:00Z")

</div>

It is part of ongoing work that the node.done calls are part of. See [Use of msg, send, done in node that can also be triggered by button & more than one input msg to one logical process, when to call done?](https://discourse.nodered.org/t/use-of-msg-send-done-in-node-that-can-also-be-triggered-by-button-more-than-one-input-msg-to-one-logical-process-when-to-call-done/28934/11)

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [21 July 2020 01:07 UTC](https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415/4 "2020-07-21T01:07:55Z")

</div>

@dceejay  
Yup, that was it, I recall the discussion about how done() support is not complete across everything as yet.

---

<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:** [19 September 2020 01:08 UTC](https://discourse.nodered.org/t/execution-of-a-flow-before-nr-shutdown/30415/5 "2020-09-19T01:08:00Z")

</div>

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