Disallow Concurrent execution of jobs belonging to same group

305 views
Skip to first unread message

Shazia Tabassum

unread,
Jan 19, 2015, 4:23:17 AM1/19/15
to quar...@googlegroups.com
Hi,

For non-concurrent execution of jobs, I have found the following link:


It says that putting an attribute of [DisallowConcurrentExecutionAttribute] on the class which is implementing IJob, will ensure the non-concurrent execution of a single JOB INSTANCE i.e. based on a job key (job_name and job_group).

My requirement is to disallow the concurrent execution of ALL JOBS BELONGING TO THE SAME GROUP. Can anyone please help how it can be implemented? Does Quartz provide this feature or it needs custom implementation?

Regards,
Shazia.

Marko Lahma

unread,
Jan 20, 2015, 1:47:31 AM1/20/15
to quar...@googlegroups.com
This is not out of the box (and might not be so trivial to implement).
Maybe it would be easier to find a workaround if we'd knew the
original reasoning behind having a whole group of jobs disallowed to
fire concurrently.

Usually the case is that job implements functionality that needs
exclusive access and hence this configuration is done on job level.

-Marko
> --
> You received this message because you are subscribed to the Google Groups
> "Quartz.NET" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to quartznet+...@googlegroups.com.
> To post to this group, send email to quar...@googlegroups.com.
> Visit this group at http://groups.google.com/group/quartznet.
> For more options, visit https://groups.google.com/d/optout.
>

Alex M

unread,
Aug 11, 2017, 6:40:58 PM8/11/17
to Quartz.NET
Have there been changes since?
I have a similar requirement, i.e. the jobs from the same group should not be running in parallel.

Marko Lahma

unread,
Aug 12, 2017, 1:57:09 AM8/12/17
to Quartz. NET
Story is still the same, job key (name, group) forms the the lock for
concurrent execution. So no support for locking the whole group.

-Marko
> Visit this group at https://groups.google.com/group/quartznet.
Reply all
Reply to author
Forward
0 new messages