Forums

Running scripts every minute

I've got a few scripts that I wish to run every minute, from what I'm hearing, the minimum is 5 minutes on the "Always-on tasks". Can this be altered for me for every minute?

No, there is no limit like that in Always-on task. It's up to your code to decide how often to do something.

Hi,

Thanks for the reply.

Sorry, what do you mean "It's up to your code to decide how often to do something."?

Always-on task means running code that does not exit. That means some kind of endless loop. Inside of that loop there is some code that decides what is it doing and how often. You need to put that logic there.

Can you provide an example? Or at least some online resources?

Take a look at https://blog.pythonanywhere.com/198/ there is a task that runs with one second pauses in between runs in example there.