Scale APScheduler

428 views
Skip to first unread message

pola hema vishnu

unread,
Nov 15, 2013, 4:50:59 AM11/15/13
to apsch...@googlegroups.com
Hi,
I want to run multiple instances of APScheduler pointing to one common persistent job DB. Is it possible to run in that way?? I also mean that the jobs in the DB get shared among the Scheduler instances and at a point there is only one instance executing a scheduled job.

Alex Grönholm

unread,
Nov 15, 2013, 3:32:45 PM11/15/13
to apsch...@googlegroups.com
Unfortunately no. I tried to make this happen with 2.0 but the operating
model I chose was fundamentally incompatible with the idea of running
multiple schedulers at once on the same DB. APScheduler 3.0 will have a
different operating model and I will be revisiting the possibility of
running multiple schedulers on a single job store. Not all backends will
be able to support this. SQAlchemy with pessimistic locking is my best
bet right now. MongoDB may also be able to support this, but I'll need
expert help with that. The Redis backend may go away entirely.
> --
> 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/groups/opt_out.

pola hema vishnu

unread,
Nov 19, 2013, 3:36:36 AM11/19/13
to apsch...@googlegroups.com
What is the expected release of 3.0 ?

Alex Grönholm

unread,
Nov 19, 2013, 10:40:15 AM11/19/13
to apsch...@googlegroups.com
19.11.2013 10:36, pola hema vishnu kirjoitti:
What is the expected release of 3.0 ?

The first half of 2014.

Robson Peixoto

unread,
Jun 13, 2015, 8:44:18 PM6/13/15
to apsch...@googlegroups.com
News about this feature ?

Alex Grönholm

unread,
Jun 13, 2015, 9:22:05 PM6/13/15
to apsch...@googlegroups.com
Depends on what you wish to achieve with this -- scalability or fault tolerance?
For more options, visit https://groups.google.com/d/optout.

Robson Peixoto

unread,
Jun 14, 2015, 6:15:26 PM6/14/15
to apsch...@googlegroups.com
About scalability.

Alex Grönholm

unread,
Jun 14, 2015, 6:30:32 PM6/14/15
to apsch...@googlegroups.com
I've been toying with the idea of adding an executor that can delegate work to workers in arbitrary locations. Would that satisfy your scaling needs?

Robson Peixoto

unread,
Jun 15, 2015, 3:18:12 PM6/15/15
to apsch...@googlegroups.com
I need to run a lot of instances of the process in different nodes. But there are tasks that can only run one instance, but if I have more the one node it will have one running task for each node.

Are there a way to limit it?
Reply all
Reply to author
Forward
0 new messages