Re: [quartznet:3433] Delayed execution of a job on startup and then every two hours

19 views
Skip to first unread message

Marko Lahma

unread,
May 20, 2013, 5:10:12 AM5/20/13
to Quartz. NET
Hi,

You could also consider delayed start of the scheduler. This gives you
application time to warm up before jobs start running. There's the
StartDelayed method for this use.

-Marko


On Fri, May 17, 2013 at 7:31 PM, Dimitris Papadimitriou
<pap...@gmail.com> wrote:
> Hi!
> I have a job that I want to execute every two hours. So I use a Simple
> trigger with a repeat-interval equals to two hours (in milliseconds of
> course) and repeat-count -1. No problem so far.
>
> Additionally, I want the job to be executed when the scheduler starts, but
> not straight away, since I don't want to create delays during application
> startup. I want it to be executed after one minute and then every two hours.
>
> I guess I need to create an extra simple trigger with repeat-interval one
> minute and repeat-count 0.
>
> I was wondering if this is the best way to do this or something more elegant
> has been provisioned by Quartz.
>
> 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 quartznet+...@googlegroups.com.
> To post to this group, send email to quar...@googlegroups.com.
> Visit this group at http://groups.google.com/group/quartznet?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages