--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/c0cf3cf8-baa6-4a74-99fe-2bca047fa7ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cyclic flows are not necessary erroneously.
There might be nodes in the cycle that will not always send a message or that will send a message with a delay.
Kr
Jan
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/b70f27ee-b99c-40b6-9bc3-9efbaa3d8193%40googlegroups.com.
There are two different things here. One is how you can create your flows such that they detect any such loops for themselves. The other is whether the editor can automatically detect loops and provide some sort of warning/indication.Whilst the first option is certainly possible, it only helps if a user knows they should do it.Having the editor spot the loops is much more useful. The challenge is how to do so without getting in the way. The editor cannot check your logic, it can only see where the wires lead, and there are many legitimate reasons for having loops in a flow.Nick
On 13 June 2017 at 08:37, Julian Knight <j.kni...@gmail.com> wrote:
One way would be to add some counters with a check to see if the counter exceeds a set number. In the simple example you give, if you added a function node before the divide by two node & wired the multiply by 2 node into it as well, you could check a counter (added to the msg) and +1 each execution.
On Tuesday, 13 June 2017 00:24:49 UTC+1, Clifford Federspiel wrote:I understand that someone may intentionally create a cyclic flow. But I'm asking if anyone has devised a way to determine if a flow (or set of flows) is cyclic, because I would like to detect the unintentional creation of cyclic flows.
On Monday, June 12, 2017 at 11:42:43 AM UTC-7, Clifford Federspiel wrote:Has anyone created a way to detect whether or not a flow is cyclic? A trivial example such as this:
is easy to identify. But link nodes, especially if they link flows together can create cyclic flows that are not so easy to identify. If a cyclic flow is deployed, it uses nearly the entire CPU and is difficult to terminate. It would helpful if a check could be run in advance of deploying so that the user could be notified if the flow is cyclic.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/2b335763-c82d-4b66-ac7a-7267e351be79%40googlegroups.com.