public boolean checkFinished() {
        return stateSearchKey.equals(StateSearchKey.SUCCESS)
                || stateSearchKey.equals(StateSearchKey.FAILED);
    }
check whether the entity is finished
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/store/KeyValueEntity.java