@YounesGa To have each thread use only 1 line, set the value "max success usage: 1", "max number of simultaneous use: 1".
This is equivalent to the fact that after the flow finishes running with a result of Success, the already used proxy line will not be used again, whereas if there is an error, it will be reused 999999999 times and only one line. for each stream
290a12f6-98cf-4378-9d4c-72a246339adb-image.png
Deleting the database while other threads are active
-
I use BAS (Browser Automation Studio) to develop a tool for scanning news articles on various online news websites. The tool runs 10 - 15 threads simultaneously, with each thread dedicated to a specific news website. During operation, I save the scanned links into a database to prevent re-scanning of old content.
I plan to implement an additional function that automatically deletes the entire database at midnight to optimize its performance. However, I have the following concerns:
-
Considering that the tool operates with multiple threads, if one thread attempts to delete the entire database while other threads are actively saving data into it, could the tool encounter errors or issues?
-
How can I ensure that only one thread remains active at midnight to perform the database deletion process?
-
-
This post is deleted!