Replies: 1 comment 5 replies
-
You need to have database persistence (clustered setup) and proper configuration https://www.quartz-scheduler.net/documentation/faq.html#how-do-i-keep-a-job-from-firing-concurrently . |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have quartz with a cron job, triggering each minute, in microservice application that allows scaling. So multiple instances of the same microservice with same quartz configuration can run at same time.
I have following configuration:
The job runs for exactly for 1min30s.
But when I run 2 instances, each minute one new instance is started. So there is overlap - in instance2 the job is started, while the previous one is still running on instance1.
Does Quartz have support to prevent this case or should I implement some kind of distributed lock myslef?
Thanks for hints.
Beta Was this translation helpful? Give feedback.
All reactions