public boolean isAnyTaskSequential() {
    for (Task t : getTasks()) {
      if (t.isSequential) {
        return true;
      }
    }

    return false;
  }
@return true if any task is sequential, otherwise, return false.
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/orchestrate/TaskWrapper.java