(1) First disable the flowchart that I need to redeploy;
(2) do deploy only modified flowchart in the disabled state (equivalent to pausing the operation of the target flowchart);
(3) Modify the target flowchart;
(4) After completing the modifications, redeploy the modified flowchart.
It seems that a single flowchart can be reinitialized and executed. But it's just that the phenomenon meets my needs, and I'm not sure if Node red's internal operation is as I thought. Could you please help me confirm the details
If you Deploy Full, then all inject nodes with "Inject once after 0.1 seconds" ticked will indeed fire.
Surprisingly though, with "Deploy Modified Flows", such an inject node will only fire if that node itself has a significant change - just moving the node or even wiring it up differently will not cause it to fire on deploy. This is what I would expect the third option "Deploy Modified Nodes" to do.
Probably a more reliable approach is to have separate production and development Node-red instances. Flows under development should be disabled or deleted from the production instance.