Hello,
I'm interested in using APScheduler in a project, one of which involves a webserver using web.py. We are using apache, and apache of course uses lots of child processes to serve web requests, and each of those will have a python process as well, running different instances of the server.
Point is, I can't use APScheduler embedded in the server application as there would be multiple schedulers using the same job store, which sounds like a big nono.
So what i want is to use a simple python script/server that just runs APScheduler, using the BlockingScheduler to do jobs, and when my server needs to add a job, it does <something> and the separate python process only running APScheduler will pick up the new job and run it when its time, etc
The problem is, what is <something>? Since BlockingScheduler is ...blocking of course, how do I get it to receive new jobs? Is it possible to have the web.py app add new jobs to the database/job store, and then the python script running only APScheduler will pick up on those and handle them correctly? Is there a timeout for the start() call where i can then check for new jobs somewhere, add them and then resume blocking? I searched around and haven't seen a solution for this use case, which is weird given the presence of BlockingScheduler, since I would of thought someone would of wanted to dynamically add jobs to a BlockingScheduler...
~Mark