@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
I try to find the answer in this forum in the last few days but no luck... I need your help
I have a list of elements saved in a resource Accounts, and a function LoginSingleYoutube.
I'm trying to call Api from web interface to run this function in multithreads. Each thread will get a value from resource and use it in the function.
Web interface:
await Api.RunFunction("LoginSingleYoutube", {});
BAS LoginSingleYoutube function:

However only 1 thread is called no matter how many {{Threads}} I set
Where am I wrong?
@luanvo94 said in Multi threads from web interface:
However only 1 thread is called no matter how many {{Threads}} I set
Where am I wrong?
If you run the threads manually, then you should run them all programmatically.
@luanvo94 said in Multi threads from web interface:
So I have to manage threads in the web interface not in the BAS?
yes