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
Daemon node #660
Comments
So what are these "unwanted changes" you mention ? |
In the node-red thread I thought you said you had used debug nodes to document a case where a Switch node was not performing as expected (when fed from a daemon node). In which case it is a problem with the Switch node not the daemon node. |
I don't follow this logic - the entire flow was identical apart from the exec or daemon node were swapped around. When swapped back to the exec node it worked reliably. |
You keep saying that, but unless you add the debug nodes, trap a failing situation, and fully analyse it to work out which node is not behaving as you expect then there is nothing to go on. Either the exec node is returning something it shouldn't (or not returning something it should) or one of the other nodes is misbehaving. Unless you can tie it down it is impossible to investigate. |
Of the two threads linked to, the more relevant one is this one: https://discourse.nodered.org/t/move-from-exec-node-to-daemon-node-has-caused-an-unusual-problem/28566 This thread describes the actual issue in swapping the Exec node for the Daemon node. From that thread, @lancelon shared this Debug output: The main takeaway is the last entry - compared to the other entries, you can see it contains two lines of std out from the process and not just one. So the question is whether there is a difference between the Exec and Daemon nodes' handling of stdout - and how the output is split into individual messages. If both nodes just pass on output as and when they receive it from the child process, then the question is why does the daemon's child process sometimes return more than the exec node's child process. |
Thanks. @knolleary has put it better than I could have. Another thing is exec and daemon nodes seem to handle carriage returns differently. I know I "keep saying it" but the Daemon node was unreliable and the exec node was reliable with the exact same flow. So I don't think it's the child process that's at fault because it was consistently consistent with the exec node. I'm OK now because I've moved over to the |
Daemon Node
The daemon node does not perform as reliably and accurately as the exec node. See here and here
The text was updated successfully, but these errors were encountered: