Persist Safe Mode #74
Replies: 6 comments 6 replies
-
Immediate thoughts/questions....
Is this not part of the step debugger ? |
Beta Was this translation helpful? Give feedback.
-
@dceejay One of the major benefits is the ability to develop flows without them executing. I have for some time needed a way to build flows & store them for later work or testing or for passing on to another user to further develop but they are not yet ready to be run. Sometimes even needing to develop on and store the flows for pushing to GIT (via projects) for another node-red to pull and use - but - without the backend running (the admin APIs), certain actions like opening credentials are not possible. Additionally, starting the flows is not desirable due to possible side effects / clashes (e.g. this 2nd developer instance makes a TCP connection that the external system considers a fail over connection, or, it has on start routines that would call an endpoint etc) TBF: The title is probably not great but I suspect this is more organically turned into a different mode - perhaps "Develop Mode", "Suspended Mode" or "Runtime Stopped" is more descriptive? From a UI POV, perhaps have a "Stop Runtime" and "Start Runtime" in the deploy menu? |
Beta Was this translation helpful? Give feedback.
-
This seems to be moving away from deploy frame of mind to a good old fashioned load/edit/save file and stop/start the runtime type of approach. If it is part of trying to split out the editor to be able to run that standalone that is one thing but I'm not sure how common this use case/requirement is... Is there a lot of pull for this to add so many extra buttons/options to the deploy menu ? How does this work if others are also editing the flow ? is it stopped for all or does one user have master stop / start control ? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We are not introducing the idea of files... Or the idea of opening a different set of flows. That's project mode we already have.
Yes. The proposal explicitly says this feature would be enabled via the settings file. whether it is enabled by default (because it's a useful feature everyone could benefit from) or off by default and we see what the response is from the wider community.
Yes, it has to be saved in the runtime so it can restart in the right state. And yes, a user could leave their flows stopped and go on holiday by mistake. |
Beta Was this translation helpful? Give feedback.
-
Link to PR: node-red/node-red#3642 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Safe mode is great for recovering from a bad value or crashing due unhandled exception (surfaced by an incoming msg or bad node configuration) or an imported node/flow etc. However as soon as you deploy the changes, the run time kicks in.
This is problematic under the following conditions...
Proposal
Side benefits
Considerations
Beta Was this translation helpful? Give feedback.
All reactions