public TaskProfile getTask(String taskId) {
        KeyValueEntity result = this.store.get(getKeyByTaskId(taskId));
        if (result == null) {
            return null;
        }
        return result.getAsTaskProfile();
    }
get task profile.

@param taskId taskId
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/store/TaskStore.java