Task Missing Or Only Show One Line Message
If you view task logs on PythonAnywhere, you are likely to see a blank page or a summary like:
2023-12-21 05:31:06 -- Completed task, took 16197.73 seconds, return code was 0.
The reason is that PythonAnywhere rotates task logs every day, then moves old logs “/var/log”. Though it is a little bit hard to find, you can click the slash to navigate to the root directory.
In the next step, you can find old logs of the past several days. Because PythonAnywhere doesn’t keep logs for a long time, the best practice is to backup logs as you need.
If you have multiple tasks, how to quickly find the logs you need? Just enter the task log page, the end of url is the schedule log id. It means you can find old logs with the same id.