public List<InstanceProfile> getInstances(String taskId) {
        List<KeyValueEntity> result = this.store.findAll(getKeyByTaskId(taskId) + store.getSplitter());
        List<InstanceProfile> instanceList = new ArrayList<>();
        for (KeyValueEntity entity : result) {
            instanceList.add(entity.getAsInstanceProfile());
        }
        return instanceList;
    }
get instance list from instance store.

@return list of task
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/store/InstanceStore.java