@bebetter said in How to Manage API Key Usage in Multi-Threaded Tasks with BAS:
Can we return the API key back to the resource after finishing a thread?
You don't need it. Just set the usage count of the resource when you create it.
@yuhuan110 said in is there any way to change threads number dynamically?:
My script need to change the threads number dynamically, e.g.: 9:00-10:00 i need 30 threads,10:00-11:00 40 threads ...
What should I do?
Dynamically increase the number of threads can not. Specify at once the maximum number of threads, and let the excess threads sleep. Or use the action "Call function in several threads".