Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config Node is destroyed before other nodes on re-deploy #2876

Closed
5 tasks done
hrueger opened this issue Feb 16, 2021 · 2 comments
Closed
5 tasks done

Config Node is destroyed before other nodes on re-deploy #2876

hrueger opened this issue Feb 16, 2021 · 2 comments
Labels

Comments

@hrueger
Copy link

hrueger commented Feb 16, 2021

What are the steps to reproduce?

What happens?

I hava a couple of Nodes which need a Config Node. This config Node holds a socket client object. The nodes send commands to the socket via the config node. Now on a redeploy my nodes listen to the "close" event to send a last (in my case a reset) command to the socket. However, the config node has already been exited and during its exit process it has closed the socket.

So now my question / bug: Can I set the nodes to be exited before the config node?

What do you expect to happen?

I would like to have the nodes being exited before the config node.

Please tell us about your environment:

  • Node-RED version: v1.2.7
  • Node.js version: v14.13.0
  • npm version: 6.14.11
  • Platform/OS: Windows_NT 10.0.19042 x64 LE
  • Browser: Firefox
@knolleary
Copy link
Member

knolleary commented Feb 17, 2021

We certainly ensure config nodes are started before flow nodes - I thought we had a similar approach for when stopping flows, but maybe not.

Will investigate.

@knolleary
Copy link
Member

Have raised a PR for 1.3 with a fix - see #2880 for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants