Forums

always_on_task stopped outputting logs randomly

My always_on_task is working, but the logs have randomly stopped working.

I run the task with this:

python3.9 /home/<insert-user-name>/src/always_on_task.py

-

I use flush in the print statements and even cancelled the task and ran it in unbufferred mode:

python3.9 -u /home/<insert-user-name>/src/always_on_task.py

-

Everything was working fine for a few weeks, until a couple days ago. Now the new log file just says the below, but the task runs and performs its duties

- Task preparing to start

We had some issues with our logging system related always-on tasks -- could you try restarting the task?

Thank you for the reply. It is working now

Glad to hear it's working now