Is there a way to mass-disable all nodes by criteria (a node type or name regexp for example) via ui and/or programmatically? I have flows consisting of webhooks (http callbacks) and series of api calls taking some time to execute. Currently NR terminates all nodes instantly on shutdown thus dropping msgs in the middle of the flows. Disabling all http callbacks would allow a graceful shutdown.
There is no way to mass disable nodes as you describe, but there is ongoing work around making the shutdown more graceful... https://github.com/node-red/designs/pull/16
Thanks for the link! Will check the proposal
Posting in case someone else needs it, too. There is Disable/Enable Selected Nodes option in Action List menu (Ctrl/Cmd+Shift+P in the editor). If the callback nodes are grouped so that they could be easily selected with the lasso, then this will save many clicks.
Thanks for finding that out. I just bound the keyboard shortcuts for "Disable/Enable Selected Nodes" to
Thanks for the idea on binding the keyboard shortcuts. Did the same
I read about the new commands back when v1.0 was released, but I completely forgot about it.
Those disable/enable shortcuts are really useful when developing and testing custom nodes.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.