public List<TaskProfile> getTasks() {
        List<KeyValueEntity> result = this.store.findAll(getKey());
        List<TaskProfile> taskList = new ArrayList<>();
        for (KeyValueEntity entity : result) {
            taskList.add(entity.getAsTaskProfile());
        }
        return taskList;
    }
get task list from task store.

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