jobDbids = queue.take();
log.fine("took job(s) "+jobDbids+" from queue");
for (Long jobDbid: jobDbids) {
CommandService commandService = jobExecutor.getCommandExecutor();
commandService.execute(new ExecuteJobCommand(jobDbid));
}
} catch (InterruptedException e) {
log.finest("waiting for acquired jobs got interrupted");
} catch (Exception e) {
log.log(Level.SEVERE, "exception in job executor thread", e);