Forums

Always-on task's start/stop takes too long time.

It takes to start python file on my local machine in PyCharm something about 1 second. At the same, the starting of always-on tasks on pythonanywhere takes about 4-5 minutes (!). And the same with stopping. Why the starting/stopping is so long?

Starting/stopping always-on tasks is a bit slower than we'd like, but it will always be slower than running it from a console (or indeed with PyCharm) because the infrastructure needs to set up a certain amount of stuff to monitor it, and provision a container to run it.

@Aleksey, also take in consideration that the log file you see in the always-on dashboard is not realtime as explained here

as explained on that post you can see the current console by typing the following in a console

tail -f /var/log/alwayson-log-837.log