-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Does Quartz's @DisallowConcurrentExecution work with multiple nodes? #761
Comments
Encountered relevant problem, here is my scenario, |
Yes, it works with multiple nodes - it does so my marking all triggers of the job as "blocked" until execution finishes. It should be impossible for this not to happen if locking is enabled, see this block of code quartz/quartz-core/src/main/java/org/quartz/impl/jdbcjobstore/JobStoreSupport.java Line 3074 in b93d749
If concurrent executions are observed then that would be a bug that needs a replication test case and issue filed. |
@jhouserizer Just a guess: |
@DisallowConcurrentExecution documentation doesn't clarify whether or not this works across a cluster.
I found some comments online that indicate that it only works on per-node basis.
But looking at other sources, it seems that it is expected that it works across cluster nodes.
I'm inclined to believe that it should work in cluster mode, but I would appreciate a final answer on this:
If I have multiple triggers for the same job (same job key), will the
@DisallowConcurrentExecution
annotation ensure that only one instance is running at a time in the entire cluster?The text was updated successfully, but these errors were encountered: