Forums

How many concurrent scheduled tasks can we have?

Hey, just had a few doubts regarding the scheduled tasks. I have a script that runs everyday at 3:30 utc.

  1. How many of these scripts can I run everyday at 3:30 utc
  2. Is a new console created when a scheduled task is run? if so, how many consoles can we have open?

You may schedule many tasks for the same time -- in fact, there are lots of users who will schedule a task for the same time as you, espacially if you'd choose time like 0, 15, 30 or 45 minutes past an hour (so it's recommended to use non obvious times to distribute processing more equally on the server).

Consoles are not being spawn when the task runs. You can open as many consoles as you need to.

Got it, that makes sense. Thanks!

So when a task is run, is that script run in its own "environment". If I schedule 2 different tasks which run the same script but with a small change that would be fine? For example, can I schedule 10 different discord bot scripts to run at the same time and they will run independent of each other?

Yes, each scheduled task runs independently. That is, of course, limited by external factors - for instance, if discord only allows one connection per account, then the second script may not be able to connect to discord.

Awesome! That clears up my doubts. Thank you very much.