public boolean isRetryAllowed() {
    return retryAllowed != 0;
  }
Determine whether this task should hold for retry when an error occurs.

@return {@code true} if this task should hold for retry when an error occurs
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java