Skip to content

Commit

Permalink
remove debug message in BurstExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarkc committed Aug 30, 2021
1 parent 4c9a069 commit f677a33
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,17 @@ private class WorkerThread extends Thread {
@Override
public void run() {
try {
LOGGER.debug("Started thread " + getName());
while (!workQueue.isEmpty()) {
try {
T poll = workQueue.poll(1000, TimeUnit.MILLISECONDS);
if (poll != null) {
LOGGER.debug("Procesing with thread " + getName());
worker.run(poll);
}
} catch (Exception e) {
LOGGER.error("WorkerThread " + getName() + " exception", e);
}
}
} finally {
LOGGER.debug("Quit thread " + getName());
removeThread(this);
}
}
Expand All @@ -71,6 +68,9 @@ public void waitForCompletion() throws InterruptedException {
if (!started) {
throw new IllegalStateException("Not started yet");
}
while (!workQueue.isEmpty()) {
worker.run(workQueue.poll());
}
ensureEnoughThreadToFinishJob();
WorkerThread workerThread;
while ((workerThread = getFirstWorkerThread()) != null) {
Expand Down

0 comments on commit f677a33

Please sign in to comment.