@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.
Hello guys, please I purchased a premium api with rate limit 1 request per second and I am running upto 100 threads using get request, most times when I start the bot, only one call out of the 100 is successful so please I wanted to ask if there is any way I can tell each thread to wait 1 second between each other before calling the api instead of all calling at once. Thanks for the help
@bennettjimmy63 its pretty simple just after Initialize just go on
Script statics - Thread number OK
then
Waiters - Sleep - [[THREAD_INDEX]]*(time to wait ms)