private boolean isLogicalRequestFinished(LogicalRequest logicalRequest) {
    return logicalRequest != null && logicalRequest.isFinished();
  }
@return true if all the tasks in the logical request are in completed state, false otherwise
ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java