[quartznet:4102] Cron + repeat count

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

[quartznet:4102] Cron + repeat count

Allan Fagner
I have the following requirement:

I have a task that will expire sometime in the future. I have to perform some code in an hourly base four hours prior to the expiration within 8:00AM to 6:00PM

I tried to use cron but I was not able to figure out (even if is possible) to set a repeat count.

I also tried to use a job listener but it seems I will have to resort to an external data storage to store the number of times executed.

Is there a simpler way I can achive that?

Thanks

--
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:4103] Cron + repeat count

Joseph Southwell
This is how you would run a task every hour from 8-6. Not sure I understood the rest of your criteria well enough to help.

0 0 8,9,10,11,12,13,14,15,16,17,18 * * ?
On Jan 18, 2017, at 2:43 PM, Allan Fagner <[hidden email]> wrote:

I have the following requirement:

I have a task that will expire sometime in the future. I have to perform some code in an hourly base four hours prior to the expiration within 8:00AM to 6:00PM

I tried to use cron but I was not able to figure out (even if is possible) to set a repeat count.

I also tried to use a job listener but it seems I will have to resort to an external data storage to store the number of times executed.

Is there a simpler way I can achive that?

Thanks

--
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.
Reply | Threaded
Open this post in threaded view
|

Re: [quartznet:4105] Cron + repeat count

Allan Fagner
Sorry for my worded question. Let me give you an example:

Let's say someone have task I must complete by tomorrow 12:00PM. By 9:00AM I sould start sending emails to that person and keep sending them on an hourly basis until 12:00PM.

Just to expand that a bit on that, for instance, if someone have to complete a task by 9:00AM I should start sending  emails at 5:00PM of the previous day. Therefore, I should send emails only from 8:00AM until 6:00PM.

Does that clarify my needs?

Thanks

Em quarta-feira, 18 de janeiro de 2017 18:01:28 UTC-2, Joseph Southwell escreveu:
This is how you would run a task every hour from 8-6. Not sure I understood the rest of your criteria well enough to help.

0 0 8,9,10,11,12,13,14,15,16,17,18 * * ?
On Jan 18, 2017, at 2:43 PM, Allan Fagner <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="49GAgEbeAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">allan...@...> wrote:

I have the following requirement:

I have a task that will expire sometime in the future. I have to perform some code in an hourly base four hours prior to the expiration within 8:00AM to 6:00PM

I tried to use cron but I was not able to figure out (even if is possible) to set a repeat count.

I also tried to use a job listener but it seems I will have to resort to an external data storage to store the number of times executed.

Is there a simpler way I can achive that?

Thanks

--
You received this message because you are subscribed to the Google Groups "<a href="http://Quartz.NET" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FQuartz.NET\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFftjpIfSCWGbkz2Ur7uq1Xp5OZTA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FQuartz.NET\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFftjpIfSCWGbkz2Ur7uq1Xp5OZTA&#39;;return true;">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="49GAgEbeAwAJ" 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="49GAgEbeAwAJ" 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="https://groups.google.com/group/quartznet" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/quartznet&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/quartznet&#39;;return true;">https://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.