Hi ,
I have a flask app running APScheduler which is scheduled to trigger every hour .
scheduler = BackgroundScheduler()
job_scan = scheduler.add_job(xyz, 'cron',minute=0,second=3)
lev = scheduler.add_job(abc, 'cron',hour=0,minute=0,second=0)
scheduler.start()
During this trigger , there are some print statements that are printed on the console. Now sometimes when I come back to the app console , I do not see the logs on the console , so it makes me think has the scheduler stopped or the logs have been stopped on the console ?
I noticed If I keep the browser tab open with the app console open , and check the console on random intervals (hours) , it prints on console just fine. But when I close the app tab and reopen the app file with it's console , I find an empty console sometimes. This is a random observation could be wrong but I've noticed most of the times it with clear console when I reopen the app console , and even after opening it , at the time of next trigger , there is still no prints on console , so I have to stop the app , restart it and reload from the Web section , then it prints as expected on console.
So wanted to understand , whether the scheduler or console session stops ? or the console buffer is full ? What exactly is happening here ? Please help , I want to make sure my app is running the scheduler all the time.