[quartznet:3967] Disallow Concurrent execution of jobs belonging to same group

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[quartznet:3967] Disallow Concurrent execution of jobs belonging to same group

Shazia Tabassum
Hi,

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

http://jayvilalta.com/blog/2014/06/04/understanding-the-disallowconcurrentexecution-job-attribute/#comment-778971

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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/quartznet.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [quartznet:3968] Disallow Concurrent execution of jobs belonging to same group

Marko Lahma
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

On 1/19/15, Shazia Tabassum <[hidden email]> wrote:

> Hi,
>
> For non-concurrent execution of jobs, I have found the following link:
>
> http://jayvilalta.com/blog/2014/06/04/understanding-the-disallowconcurrentexecution-job-attribute/#comment-778971
>
> 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.
>
> --
> 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 [hidden email].
> To post to this group, send email to [hidden email].
> Visit this group at http://groups.google.com/group/quartznet.
> For more options, visit https://groups.google.com/d/optout.
>

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/quartznet.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [quartznet:4133] Disallow Concurrent execution of jobs belonging to same group

Alex M
Have there been changes since?
I have a similar requirement, i.e. the jobs from the same group should not be running in parallel.


On Tuesday, 20 January 2015 06:47:31 UTC, Marko Lahma wrote:
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

On 1/19/15, Shazia Tabassum <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="mZnf6HUqR_wJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sha...@...> wrote:

> Hi,
>
> For non-concurrent execution of jobs, I have found the following link:
>
> <a href="http://jayvilalta.com/blog/2014/06/04/understanding-the-disallowconcurrentexecution-job-attribute/#comment-778971" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjayvilalta.com%2Fblog%2F2014%2F06%2F04%2Funderstanding-the-disallowconcurrentexecution-job-attribute%2F%23comment-778971\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEz8mjHHbR5OtEyRIqHM-NzWu2bcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjayvilalta.com%2Fblog%2F2014%2F06%2F04%2Funderstanding-the-disallowconcurrentexecution-job-attribute%2F%23comment-778971\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEz8mjHHbR5OtEyRIqHM-NzWu2bcA&#39;;return true;">http://jayvilalta.com/blog/2014/06/04/understanding-the-disallowconcurrentexecution-job-attribute/#comment-778971
>
> 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.
>
> --
> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="mZnf6HUqR_wJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">quartznet+...@googlegroups.com.
> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="mZnf6HUqR_wJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">quar...@....
> Visit this group at <a href="http://groups.google.com/group/quartznet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/group/quartznet&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/group/quartznet&#39;;return true;">http://groups.google.com/group/quartznet.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/quartznet.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [quartznet:4134] Disallow Concurrent execution of jobs belonging to same group

Marko Lahma
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

On Fri, Aug 11, 2017 at 2:58 PM, Alex M <[hidden email]> wrote:

> Have there been changes since?
> I have a similar requirement, i.e. the jobs from the same group should not
> be running in parallel.
>
>
> On Tuesday, 20 January 2015 06:47:31 UTC, Marko Lahma wrote:
>>
>> 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
>>
>> On 1/19/15, Shazia Tabassum <[hidden email]> wrote:
>> > Hi,
>> >
>> > For non-concurrent execution of jobs, I have found the following link:
>> >
>> >
>> > http://jayvilalta.com/blog/2014/06/04/understanding-the-disallowconcurrentexecution-job-attribute/#comment-778971
>> >
>> > 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.
>> >
>> > --
>> > 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 [hidden email].
>> > To post to this group, send email to [hidden email].
>> > Visit this group at http://groups.google.com/group/quartznet.
>> > For more options, visit https://groups.google.com/d/optout.
>> >
>
> --
> 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 [hidden email].
> To post to this group, send email to [hidden email].
> Visit this group at https://groups.google.com/group/quartznet.
>
> For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/quartznet.
For more options, visit https://groups.google.com/d/optout.