@Override public void run() { while (!terminate) { Job runningJob = null; try { runningJob = queue.take(); } catch (InterruptedException e) { LOGGER.warn("{} is interrupted", getClass().getSimpleName(), e); break; } runJobInScheduler(runningJob); } }