private void traverseStoreTasksToManager(Map<String, TaskProfile> tasksFromManager) {
        taskStore.getTasks().forEach((profileFromStore) -> {
            if (!tasksFromManager.containsKey(profileFromStore.getTaskId())) {
                LOGGER.info("traverseStoreTasksToManager try to delete task {}", profileFromStore.getTaskId());
                EventReportUtils.report(profileFromStore.getInlongGroupId(),
                        profileFromStore.getInlongStreamId(), AgentUtils.getCurrentTime(),
                        EventReportUtils.EVENT_TYPE_CONFIG_UPDATE, EventReportUtils.EVENT_LEVEL_INFO,
                        EvenCodeEnum.TASK_DELETE, profileFromStore.toJsonStr(),
                        EvenCodeEnum.TASK_DELETE.getMessage());
                deleteTask(profileFromStore);
            }
        });
    }
traverse tasks in task store, if not found in tasks from manager then delete it
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskManager.java