private void stopAllTasks() {
        taskMap.values().forEach((task) -> {
            task.destroy();
        });
        taskMap.clear();
    }
add task profile to task store
if task state is RUNNING then add task to memory
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskManager.java