Answers for "quartz trigger job each clock hour"

0

quartz trigger job each clock hour

trigger = TriggerBuilder.Create()
.WithIdentity("trigger8") // because group is not specified, "trigger8" will be in the default group
.StartAt(DateBuilder.EvenHourDate(null)) // get the next even-hour (minutes and seconds zero ("00:00"))
.WithSimpleSchedule(x => x
    .WithIntervalInHours(2)
    .RepeatForever())
// note that in this example, 'forJob(..)' is not called 
//  - which is valid if the trigger is passed to the scheduler along with the job  
.Build();

scheduler.scheduleJob(trigger, job);
Posted by: Guest on April-27-2021

Code answers related to "quartz trigger job each clock hour"

Browse Popular Code Answers by Language