Parallel Processing in GhPython

Hello fellow grasshoppers,

I just discovered the “ghpythonlib.parallel.run” function, for ghpython, so I started experimenting a little bit with it. I’m not very familiar with it, but managed to run a code that works… or at least I thought so. While it appears to work, if you run the “test” button inside the python component multiple times, there will be out of nowhere appear a case in which the python component fails to process completely. I’m not sure what is going on, but I leave it here if there is someone that feels like could give some insight.

I will also leave a sc of when the component fails to run, if it helps out.

Thanks!
Multithread Bugged Component.gh (18.4 KB)

Could you please copy the code inside a message by using 3 backticks
``` py
<your code>
```

1 Like