public void cancel() {
        cancelled = true;
        retryWithToleranceOperator.triggerStop();
    }
Cancel this task. This won't actually stop it, but it will prevent the state from being
updated when it eventually does shutdown.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java