private void addToStore(TaskProfile taskProfile) {
        if (taskStore.getTask(taskProfile.getTaskId()) != null) {
            LOGGER.error("task {} should not exist", taskProfile.getTaskId());
        }
        taskStore.storeTask(taskProfile);
    }
add task to task store, it was expected that there is no record refer the task id.
cause the task id will change if the task content changes, replace the record
if it is found, the memory record will be updated by the task store.
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskManager.java