@Override
    public String toString() {
        return "restart request for {" + "connectorName='" + connectorName + "', onlyFailed=" + onlyFailed + ", includeTasks=" + includeTasks + '}';
    }
Determine whether the task instance with the given status is to be restarted.

@param status the task status; may not be null
@return true if the task is to be restarted, or false otherwise
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartRequest.java