Run 000s of jobs using APscheduler

30 views
Skip to first unread message

Vanya Sahu

unread,
Feb 1, 2022, 8:20:00 AM2/1/22
to APScheduler
Hi I have to schedule jobs for over 10k servers and they need to hit an API every 5 minutes. When I try to do this via Apscheduler, most of the jobs remain unfinished as their next execution time starts without getting the opportunity for the first one to finish. Can someome guide me how to move further on this?

Alex Grönholm

unread,
Feb 1, 2022, 8:21:24 AM2/1/22
to apsch...@googlegroups.com

What do you want to happen when a job is due for execution but the previous instance is still running?

Vanya Sahu kirjoitti 1.2.2022 klo 15.20:
Hi I have to schedule jobs for over 10k servers and they need to hit an API every 5 minutes. When I try to do this via Apscheduler, most of the jobs remain unfinished as their next execution time starts without getting the opportunity for the first one to finish. Can someome guide me how to move further on this? --
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/apscheduler/fa198b15-9ecc-4da9-a72b-0b0d68d25de6n%40googlegroups.com.

Vanya Sahu

unread,
Feb 12, 2022, 1:10:42 PM2/12/22
to apsch...@googlegroups.com
I'd want them both to execute, but if the time is beyond certain limit, example 2 hours, then I want to ignore the oldest pending job.

Thanks and Regards
Vanya Sahu
Phone - 9873877103


Alex Grönholm

unread,
Feb 12, 2022, 2:57:06 PM2/12/22
to apsch...@googlegroups.com

Such sophisticated logic is not currently possible with APScheduler. You're better off implementing such guards on your own.

Reply all
Reply to author
Forward
0 new messages