APScheduler (v3.10.3) + BlockingScheduler + Daemon Thread: Jobs Terminate Unexpectedly on Overlap #1072
Unanswered
harshalizode
asked this question in
Q&A
Replies: 2 comments 17 replies
-
|
Daemon threads in general are not safe. What does |
Beta Was this translation helpful? Give feedback.
15 replies
-
|
Any guidance on how to prevent premature job termination and ensure stable concurrent job execution? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm running APScheduler v3.10.3 using a BlockingScheduler, and I've run into a strange issue when executing the scheduler inside a daemon thread managed by a subprocess. Here's a breakdown of my setup and the problem:
🔧 Architecture Overview:
🧩 Problem:
When multiple jobs (scheduled to run at the same second or with overlap) are triggered:
📜 Code Summary:
And the scheduler configuration:
All jobs use the same synchronous function and are scheduled using cron triggers.
❓ Questions:
Any guidance on how to prevent premature job termination and ensure stable concurrent job execution would be much appreciated.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions