本帖最后由 suijiarui 于 2012-08-11 01:29:03 编辑

解决方案 »

  1.   

    重复发帖浪费分数,让讨论焦点分散,不可取resumeJobGroup的API解释说了(错过的触发,将在恢复时重新执行):
    If any of the Job'sTrigger s missed one or more fire-times, then the Trigger's misfire instruction will be applied.所以我想你应该用standby()会更合适(但这个影响是全局性的):
    When start() is called (to bring the scheduler out of stand-by mode), trigger misfire instructions will NOT be applied during the execution of the start() method - any misfires will be detected immediately afterward (by the JobStore's normal process).或者用unscheduleJob()将这个任务撤掉。
    顺带说一句:在你这个例子里面,pauseJobGroup() 跟 pauseTriggerGroup() 重复,因为pauseJobGroup实际上也是暂停它的triggers:
    Pause all of the JobDetails in the given group - by pausing all of their Triggers.
      

  2.   

    1
    misfireInstruction = CronTrigger.MISFIRE_INSTRUCTION_DO_NOTHING
    2
    quartz.properties
    #这个时间大于10000(10秒)会导致MISFIRE_INSTRUCTION_DO_NOTHING不起作用。
    org.quartz.jobStore.misfireThreshold = 5000
    ----------------
    2步都需要的哦,信我者得永生!