private boolean isProfileValid(TaskProfile profile) {
        try {
            Class<?> taskClass = Class.forName(profile.getTaskClass());
            Task task = (Task) taskClass.newInstance();
            return task.isProfileValid(profile);
        } catch (Throwable t) {
            LOGGER.error("isProfileValid error: ", t);
        }
        return false;
    }
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