boolean markTaskSuccess(TaskModel taskModel) {
        LOGGER.debug(
                "Task {} took {} iterations to complete",
                taskModel.getTaskId(),
                taskModel.getIteration() + 1);
        taskModel.setStatus(TaskModel.Status.COMPLETED);
        return true;
    }
Check if all tasks in the current iteration have reached terminal state.

@param doWhileTaskModel The {@link TaskModel} of DO_WHILE.
@param referenceNameToModel Map of taskReferenceName to {@link TaskModel}.
@return true if all tasks in DO_WHILE.loopOver are in <code>referenceNameToModel</code> and
    reached terminal state.
core/src/main/java/com/netflix/conductor/core/execution/tasks/DoWhile.java