|
|
@ -1199,27 +1199,26 @@ public abstract class JobStoreSupport implements JobStore, Constants { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (job == null) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (job == null) { |
|
|
|
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 (" |
|
|
|
+ newTrigger.getJobKey() |
|
|
|
+ newTrigger.getJobKey() |
|
|
|
+ ") referenced by the trigger does not exist."); |
|
|
|
+ ") referenced by the trigger does not exist."); |
|
|
|
} |
|
|
|
} |
|
|
|
if (job.isConcurrentExectionDisallowed() && !recovering) { |
|
|
|
|
|
|
|
state = checkBlockedState(conn, job.getKey(), state); |
|
|
|
if (job.isConcurrentExectionDisallowed() && !recovering) { |
|
|
|
} |
|
|
|
state = checkBlockedState(conn, job.getKey(), state); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (existingTrigger) { |
|
|
|
if (existingTrigger) { |
|
|
|
getDelegate().updateTrigger(conn, newTrigger, state, job); |
|
|
|
getDelegate().updateTrigger(conn, newTrigger, state, job); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
getDelegate().insertTrigger(conn, newTrigger, state, job); |
|
|
|
getDelegate().insertTrigger(conn, newTrigger, state, job); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (JobPersistenceException e) { |
|
|
|
|
|
|
|
getLog().error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
throw new JobPersistenceException("Couldn't store trigger '" + newTrigger.getKey() + "' for '" |
|
|
|
throw new JobPersistenceException("Couldn't store trigger '" + newTrigger.getKey() + "' for '" |
|
|
@ -2987,6 +2986,7 @@ 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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (trigger.getCalendarName() != null) { |
|
|
|
if (trigger.getCalendarName() != null) { |
|
|
|