# Deploying a node (Modified Nodes) and its impact on running flows

**URL:** <https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261>\
**Category:** General\
**Created:** [9 October 2024 11:55 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261 "2024-10-09T11:55:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![venomancer](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@venomancer](https://discourse.nodered.org/u/venomancer)\
**Post date:** [9 October 2024 11:55 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261/1 "2024-10-09T11:55:38Z")

</div>

Hello!

I have a question regarding the deployment of nodes.

Let's say I have a flow and at some point there are running instances of those flows. If I change a node that is part of this flow and deploy (using the Modified Nodes mode), what will happen to the currently running flows?

Ideally, I expect a node change to only have an impact on a flow for all further triggers, but I assume that this is not how it works now.

> [@Does deploy stops currently running flows?](https://discourse.nodered.org/t/does-deploy-stops-currently-running-flows/26157/2):
>
> Hi @mito there are three types of Deploy available: The default, Full deploy, will stop all nodes and restart them with the new flow configuration. 'Modified Flows' type of deploy will only restart nodes that have been changed and any nodes they are wired to. Everything else is left running. 'Modified Nodes' will only restart nodes that have been changed. Everything else is left running.

I have found this thread where @knolleary mentioned that deployed nodes are restarted, but I am still not sure whether it can result in the flow getting stuck.

Thanks!

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [9 October 2024 13:02 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261/2 "2024-10-09T13:02:47Z")

</div>

> [@venomancer](#):
>
> result in the flow getting stuck.

Why do you ask this? Are you facing a blockage when you deploy?

---

<div class="post-metadata">

**Author:** ![venomancer](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@venomancer](https://discourse.nodered.org/u/venomancer)\
**Post date:** [9 October 2024 13:50 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261/3 "2024-10-09T13:50:12Z")

</div>

I am asking because I want to understand what will happen if running instances are current at node X, and this node X is redeployed.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 October 2024 13:54 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261/4 "2024-10-09T13:54:00Z")

</div>

Hi @venomancer

All nodes that need to be restarted will be stopped. If a node is in the middle of handling a message, it will complete its work, but if the next node in the flow has been stopped then the message won't go anywhere.

There was some exploration around graceful shutdown of flows a while ago; allowing existing work to 'complete', but it didn't get far enough to make it into the core.

---

<div class="post-metadata">

**Author:** ![venomancer](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@venomancer](https://discourse.nodered.org/u/venomancer)\
**Post date:** [9 October 2024 15:34 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261/5 "2024-10-09T15:34:55Z")

</div>

Thanks for answering, @knolleary

Just to confirm that my understanding is correct.  
If my flow looks like A-\>B-\>C roughly, and node B is deployed, it is stopped.

If the flow is currently running node A, B gets stopped and the message is just dropped and this specific instance is "stuck" forever.

That said, if node A takes some time and node B has enough time to restart, the flow will be lucky not to get stuck.

Are the assumptions above correct?

Thanks!

---

<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:** [7 January 2025 15:35 UTC](https://discourse.nodered.org/t/deploying-a-node-modified-nodes-and-its-impact-on-running-flows/92261/6 "2025-01-07T15:35:10Z")

</div>

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