Browse Source

DEC-7376 定时调度任务表中存在脏数据的时候,不能影响整个scheduler

research/11.0
Lanlan 5 years ago
parent
commit
f03371b0d2
  1. 7
      fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java

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

@ -1200,7 +1200,11 @@ public abstract class JobStoreSupport implements JobStore, Constants {
}
if (job == null) {
job = retrieveJob(conn, newTrigger.getJobKey());
try {
job = retrieveJob(conn, newTrigger.getJobKey());
} catch (JobPersistenceException e) {
getLog().error(e.getMessage());
}
}
if (job == null) {
throw new JobPersistenceException("The job ("
@ -2983,7 +2987,6 @@ public abstract class JobStoreSupport implements JobStore, Constants {
} catch (SQLException sqle) {
getLog().error("Unable to set trigger state to ERROR.", sqle);
}
throw jpe;
}
if (trigger.getCalendarName() != null) {

Loading…
Cancel
Save