Browse Source

DEC-8173 脏数据导致quartz启动失败

bugfix/10.0
Lanlan 6 years ago
parent
commit
978eccd5be
  1. 5
      fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java

5
fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java

@ -982,7 +982,7 @@ public abstract class JobStoreSupport implements JobStore, Constants {
}
for (TriggerKey triggerKey : misfiredTriggers) {
try {
OperableTrigger trig =
retrieveTrigger(conn, triggerKey);
@ -994,6 +994,9 @@ public abstract class JobStoreSupport implements JobStore, Constants {
if (trig.getNextFireTime() != null && trig.getNextFireTime().getTime() < earliestNewTime)
earliestNewTime = trig.getNextFireTime().getTime();
} catch (JobPersistenceException e) {
getLog().error(e.getMessage());
}
}
return new RecoverMisfiredJobsResult(

Loading…
Cancel
Save