Forums

Scheduled tasks / regular log-output can´t be seen?

Hello - i have scheduled a program running everyhour (the program is doing something every 5 minutes and is also som print-statements are happening in the program) When i check the log with the "View task log" button i only see some outputs when the program has crashed) - but i can´t see the regular print-statements in the log. Why can´t i see the print-statements in the log?

You should be able to see prints in the log. Maybe your code is crashing before the print?

Hello - yes you are right - the output is happening. But it seems that sometimes there is simply no output / update in the logs for hours - and sometimes its updated fast and regularly. It seems to be not really stable.

Are you using print to log? If so, do you have flush=True kwarg set up? That might help.

oh thanks - i was not aware of this parameter I will give it a try

Let us know if it helps.