Wait for job execution finished on multiple instances in cluster #1982
Unanswered
DmitryDimov-3shape
asked this question in
Q&A
Replies: 1 comment
-
I saw, you already answered, that it could be done "database to coordinate or write a custom ISemaphore", but can you give more info? I'm already using MSSQL quartz tables |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have simple trigger with 1 Job, that repeats every 10 secs, forever. Some of Jobs execution could take several minutes to be finished. My requirement is that Job can't start before previous one, not finished. I could do this with DisallowConcurrentExecution, but it will work only if one instance of App is running.
If I run this trigger on multiple instances of service, it will start it's own Job and will wait for it for each instance.
Is it possible to disallow/wait for execution of the job if previous job run not finished on multi instance environment? For ex, I'm running instance a and instance b of services, where the same Job setuped and when a start a Job, b will wait for Job finished?
I have tried Clustering feature, but I have no success, Jobs running independent of each instance.
I could do this by implementing global flag("InProgress") and check for it, but maybe you have smthing out of the box?
Beta Was this translation helpful? Give feedback.
All reactions