If you have multiple browser threads then you can add a date column in database for each account. When some action is finished then you can add 30 minutes to the date now and add it to the database of that particular account. Then add a check condition in the beginning of the thread which checks if the current date is less or greater than the database date. If it is greater that means there is still time left and then close that thread without opening browser.
How to improve when running multiple threads
-
When I run 60 threads, my CPU is only 30% and Memory is only 47% but running threads get Timeout when loading page continuously and machine lag. How to optimize when running up to 60 threads or maybe up to 100 threads

-
@alexboi1012 because proxy
-
@Moastafi74 But when I run 20 threads there is absolutely no error