quartz: preventing concurrent instances of a job in jobs.xml

前端 未结 7 1678
既然无缘
既然无缘 2020-12-12 15:01

This should be really easy. I\'m using Quartz running under Apache Tomcat 6.0.18, and I have a jobs.xml file which sets up my scheduled job that runs every minute.

W

7条回答
  •  伪装坚强ぢ
    2020-12-12 15:33

    could you set the job as a StatefulJob, and for each trigger you create set the MisfireInstruction for the job to not fire if it is missed? Not sure what type of job you are using but you'll have to do some research into the misfireInstructions that are available for your trigger type.

    Thanks, D

提交回复
热议问题