}
// Are there any other pending nodes?
if (nodeIterator.hasNext()) {
// Check timeout
if ((scheduleExecution.getTimeout() > 0) && (timer.elapsed() > scheduleExecution.getTimeout())) {
LOGGER.debug("Execution [{}] is timed out", scheduleExecution.getId());
return ScheduleExecutionStatus.TIMEOUT;
}
} else {
if (scheduleExecution.isAllNodes() && (succeedNodes == scheduleExecution.getNodes().size())) {