import timefrom apscheduler.schedulers.background import BackgroundSchedulersched = BackgroundScheduler()def job():t=time.strftime("%Y-%m-%d %H:%M:%S")runfile('C:/temp/KIC53_Monitor.py', wdir='C:/temp')sched.add_job(job, 'cron', minute='15,45', second=0)sched.start()
I don't see what this has to do with APScheduler when the
external script fails.
--
You received this message because you are subscribed to the Google Groups "APScheduler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apscheduler...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Look, your problem is not an APScheduler problem. As the log
entry says, there is an exception raised inside the scheduled job.
Do you not see that from the traceback?
If your example script was all of the code you were using then
it's wrong. You were using the background scheduler but then you
let the execution of the program get to the end of the script,
terminating the application. The BlockingScheduler class exists
for cases like this.