Script is starting with 150 threads. They work for random time and sleep random time also.
How you can make the script to run only 10-20 threads at the same time? When this 10-20 threads finish work they go to sleep, another 10-20 threads start and so on.
If you use English to communicate, more people will be able to help you.
I have a script that scans information from more than 500 websites and runs continuously without stopping. I usually run 25 threads, but after a day, I often have to restart the software because it seems like there are not enough threads running. It's possible that some websites or scripts encounter errors, leading to thread interruptions. Is there a way to ensure that there are always 25 threads running, and that websites with errors will be retried in the subsequent loops?
Why did you duplicate your first message to me in this topic? It was in English anyway.
Hey, seem to be having a problem with WebSocket. I searched all relating threads and guides before asking. Having trouble using websocket in BAS. Here is a screenshot of the example code & log & that I have imported the module and enabled nodejs: