As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
(this process includes many jobs run in parallel),
<br> protected void stopExecutingJobs() {<br> stopJobAcquisitionThread();<br> <br> // Ask the thread pool to finish and exit<br> threadPoolExecutor.shutdown();<br><br> // Waits for 1 minute to finish all currently executing jobs<br> try {<br> if(!threadPoolExecutor.awaitTermination(60L, TimeUnit.SECONDS)) {<br> log.log(Level.WARNING, "Timeout during shutdown of job executor. "<br> + "The current running jobs could not end within 60 seconds after shutdown operation."); <br> } <br> } catch (InterruptedException e) {<br> log.log(Level.WARNING, "Interrupted while shutting down the job executor. ", e);<br> }<br><br> threadPoolExecutor = null;<br> }<br>