@Override
    public boolean isActive() {
        return true;
    }
A StreamTask is associated with a {@link AbstractPartitionGroup}, and is assigned to a StreamThread for processing.
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java