-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Refactor JobQueue #1936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I did a bit looking around and to me it seems that we basically have 3 options here:
If we're okay with adding a third party lib for the scheduling, i'd vote for APS, from my first impression. |
I vote APScheduler. Clearly APScheduler's API is more readable. |
#1981 has been merged into v13, so I'll close this |
Is your feature request related to a problem? Please describe.
Maintaining
JobQueue
is not easy and sometimes error prone, see e.g. #1338Describe the solution you'd like
We could refactor
JobQueue
to use a third party library for the scheduling, keeping therun_*
methods as wrappers. We should probably also add arun_cron
as suggested in #1337 as convenience wrapper for all the other cases we can't all cover (like run a job every time mars and saturn align …)Describe alternatives you've considered
Just implement
run_cron
would be a first step.The text was updated successfully, but these errors were encountered: