When the inject node is set to "once" it fires upon each full deploy but it does not when deploying only the modified flow.
Is there a special reason for this different behavior? Generally speaking I would very much appreciate the Inject node to fire also on modified flow deploys.
Did you modify the flow the Inject node is wired to? If not, then it won't be restarted when you do a modified-flows deploy so it won't trigger. That is what it means when it says only nodes in modified flows will be restarted.
In my tests (NR v0.19.5) I did get following results:
- Add a new Inject Node set to "once" to a flow --> Deploy modified flow only --> Inject will fire
- Modify existing flow with Inject Nodes set to "once" --> Deploy modified flow only --> Inject will not fire
- Modify existing flow with Inject Nodes set to "once" --> Deploy full --> Inject will fire
What modification did you make to the flow? Simply moving a node does not class as a modification to trigger a restart - it has to be a material change to its configuration.
I have just tested on git master and it works as expected.
My test case was crap. Sorry for the noise