Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is there a way to sleep until specific time? Example schedule a task or a function to run at midnight every day.
Heres a function that returns how many milliseconds to midnight, so it will sleep to midnight, you can then add in what to do at midnight
https://pastebin.com/raw/pjcWHpbj
@caplaz You can also use BAS command line interface with any scheduler. https://wiki.bablosoft.com/doku.php?id=how_to_schedule_bas_script
@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.
Since the update to the latest versioin 24.6.2 I'm facing frequent crashing of Task Scheduler or it does not start at all.
Attached a screenshot.
Hopefully this can be fixed in one of the next releases.
Thank you :)
alt text
it runs normally