Forums

Scheduled Tasks Console

Hi Everyone,

Are scheduled tasks supposed to show up on the Running Process in the Console tab? Is there a way to see the actual console of the running scheduled tasks?

I'm asking as I have set up my long running scripts to run as hourly scheduled tasks https://help.pythonanywhere.com/pages/LongRunningTasks/

But it's difficult for me to tell if they are working correctly or not without viewing the active console?

Thanks

Tom

no- but they do show up in the running processes list in the scheduled tasks tab.

maybe try adding some print + flush statements so that they come up in the log files?

+1 to what bfg says. If you do

import sys
...
print("Debugging information")
sys.stdout.flush()

...in your scheduled task code, then it will appear in the log (click "View log" on the "Schedule" tab).

Ah excellent, I was missing the sys.stdout.flush()

Thanks very much!

No problem!