misfire-instruction

How to use cron misfire-instruction FireOnceNow with AdoJobStore in Quartz.NET 2.0?

孤者浪人 提交于 2019-12-12 06:23:36
问题 I am using a cron trigger with misfire-instruction set to FireOnceNow in quartz.net-2.0 set up with AdoJobStore and using XMLSchedulingDataProcessorPlugin . cron-expression is set so the job will trigger every 1 minute: 0 0/1 * * * ? . The job scheduler is set to start in Global.asax.cs . Expected behaviour: If the server is stopped when a job should trigger but it is restarted before the next trigger then it should trigger once immediately. Example: First job triggers at 00:01:00 . I stop

In Quartz 1.8.6, is there an option like MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT CronTrigger

♀尐吖头ヾ 提交于 2019-12-11 06:14:15
问题 We're using Quartz 1.8.6 in our app. We are using CronTriggers for hourly and nightly jobs. We would like to set things up such that if there is a misfire, we want to skip the job until the next cron time rolls around. For simple jobs, it appears you can do a nightlyTrigger.setMisfireInstruction(SimpleTrigger.MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT); However, it appears that this does not work with CronTrigger. What is the Misfire instruction to use in this case? 回答1: You