}
private boolean submitAllWaiting() throws IOException, InterruptedException {
boolean sawSubmit = false;
for (Iterator<Job> iter = waiting.iterator(); iter.hasNext();) {
Job next = iter.next();
LOG.debug("Attemps to submit job: {}", next.getId());
if (isBlocked(next)) {
LOG.debug("Job is currently blocked: {}", next.getId());
continue;
}
iter.remove();
if (submit(next)) {
sawSubmit = true;