CronTrigger + WithMisfireHandlingInstructionDoNothing

136 views
Skip to first unread message

Pablo Szittyay

unread,
May 20, 2013, 10:41:18 AM5/20/13
to quar...@googlegroups.com
I have several jobs that have several triggers. But i have a problem that i think it is related to the misfire logic. I want the jobs to fire at the time that they are programmed (+ the misfirewindow) but if that not the case, i want to ignore the job and wait for the next one. To achieve this i use his piese of code


  var trigger = (ICronTrigger)TriggerBuilder
                        .Create()
                        .WithCronSchedule(cron, a => a.WithMisfireHandlingInstructionDoNothing())
                        .WithDescription(momento.Nombre)
                        .ForJob(this.JobDetail)
                        .Build();

I am  calling the WithMisfireHandlingInstructionDoNothing() in order to ignore the misfire jobs. is this correct?
Thanks
Reply all
Reply to author
Forward
0 new messages