Forums

Do files and always on tasks double run?

Hi, sorry for the basic question and lack of technical terminology, I'm new to python and python anywhere.

I have a file I was running on a delay every 30 seconds. Watching the log, it seems to be working fine. I recently switched it to an always on task. Are the file and the task now both running (i.e., the program is executing twice every 30 seconds)? Or is the always on task just making sure the file keeps going/resets if there is a problem? I don't see a way to stop the program in the file once it's running.

Thanks!

When you create an always on task, you are instructing it to run your code. If you're also running it in a console, then it will be running twice.

Thanks for the reply.. I just have the file I uploaded and when I open the file and hit run, it runs (and appears to keep running when I don't have it open on my browser). I don't know if that counts as running it in a console or not, but I haven't created a console on the dashboard.

Does the same apply? If so, how can I stop the file from running but keep the always on task going. Hope that makes sense.

Yes, it does. The always on task is running your code. If you are also running your code, then it is running twice.