|
|
@ -1199,15 +1199,15 @@ 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()); |
|
|
|
|
|
|
|
} |
|
|
|
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) { |
|
|
|
if (job.isConcurrentExectionDisallowed() && !recovering) { |
|
|
|
state = checkBlockedState(conn, job.getKey(), state); |
|
|
|
state = checkBlockedState(conn, job.getKey(), state); |
|
|
|
} |
|
|
|
} |
|
|
@ -1220,7 +1220,6 @@ public abstract class JobStoreSupport implements JobStore, Constants { |
|
|
|
} catch (JobPersistenceException e) { |
|
|
|
} catch (JobPersistenceException e) { |
|
|
|
getLog().error(e.getMessage()); |
|
|
|
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 '" |
|
|
|
+ newTrigger.getJobKey() + "' job:" + e.getMessage(), e); |
|
|
|
+ newTrigger.getJobKey() + "' job:" + e.getMessage(), e); |
|
|
|