Hi all,
I've got a couple of mysterious issues with APScheduler 2.1.0
I've created an application running as a daemon that reads jobs from a text file called 'schedtab' and loads them into APScheduler
The APScheduler no longer calls the callback function that I've been using for the last few weeks.
It fails silently, that is, it simply doesn't execute the callback_method. I know this because I've put in debugging statements
as the first line of code in the callback method. Since there aren't any errors logged , I have no idea how to debug this problem.
i've tried putting in debugging statements into the threadpool.py code where I'm guessing it runs the scheduled jobs as threads.
but nothing outputs. running the print_jobs method shows that the job(s) are scheduled correctly, but when the time comes to run...
nothing.
I also have a second issue.
The first time that I load the file in and add jobs (via the default jobstore and the cron trigger)
I get a job schedule that looks normal, i.e. it puts the jobs into the schedule correctly. However, if I reload the
jobs file, the next_run attribute in all of the jobs changes to None and no jobs will run. Before reloading the file,
I clear all of the jobs out via a method that looks like this:
jobs = self.sched.get_jobs() # sched is the Schedule object
for job in jobs:
self.sched.unschedule_job(job)
I then reload the file with the jobs again via the add_cron_job method. The reason for this is that it is possible that jobs
may have been deleted out of the text file so I figured it's simply easiest to wipe out everything and reload the jobs
from scratch.
Any ideas on how I can debug these problems?
Thanks,
Braun Brelin
.