public void submitConfig(ConfigResult config) {
        if (!isConfigValid(config)) {
            LOGGER.error("config is invalid !");
            return;
        }
        configQueue.clear();
        for (int i = 0; i < config.getModuleList().size(); i++) {
            LOGGER.info("submitModules index {} total {} {}", i, config.getModuleList().size(),
                    GSON.toJson(config.getModuleList().get(i)));
        }
        configQueue.add(config);
    }
module manager, deal with module add, delete and modify
inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java