public void setRetryAllowed(boolean enabled) {
    retryAllowed = enabled ? 1 : 0;
  }
Sets whether this task should hold for retry when an error occurs.

@param enabled  {@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