Browse Source

Merge pull request #203 in CORE/base-third from ~LANLAN/base-third:feature/10.0 to feature/10.0

* commit 'f03371b0d254b2b467e9d263b348527cf8b88bc3':
  DEC-7376 定时调度任务表中存在脏数据的时候,不能影响整个scheduler
research/11.0
neil 6 years ago
parent
commit
2788e4d282
  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) { if (job == null) {
job = retrieveJob(conn, newTrigger.getJobKey()); try {
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