Browse Source

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

* commit '0c0cec7b54b4398b09f9efd8c360a1051e1293fe':
  DEC-7376 定时调度任务表中存在脏数据的时候,不能影响整个scheduler
final/10.0.3
Kara 6 years ago
parent
commit
715e8099ea
  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