Browse Source

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

bugfix/10.0
Lanlan 6 years ago
parent
commit
888fd8ee0b
  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

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

Loading…
Cancel
Save