Recursive data found only after clustering some groups

Hi, I have a script that I refactored, making some clusters. And now I get an infinite loop. I tripple check the code, and apart from the clusters it is identical.

I use that have this infinite loop also without clusters, but moving some groups and nodes on the canvas, so make them compute first (as gh has a compute order starting from the top-left to the bottom-right) that solve that is, but where do clusters fit in this order? And how do I structure my script with clusters so the compute order works again :wink:

I now have the internalize some elements to break to loop after i change a variable, so not very useable

I wish I could share the code, but the company does not allow me

@crz_06
With a complex issue like this, you’re most probably not going to get help without posting some files. There could be a lot of different reasons for this.
Do you know it’s in a loop, or just takes long time processing?
Why loop - usally Gh does not compute loops? Plugin, script node?

Hi Toni,
yes, i am trying to simplify the code and make it more generic, so I can share it here ;).

the error is actually: 1. Recursive data stream found, this component depends on itself