private void deleteAndSaveModuleConfig(ModuleConfig module) {
        if (!currentModules.containsKey(module.getId())) {
            LOGGER.error("should not happen! module {}({}) not found!", module.getId(), module.getName());
            return;
        }
        currentModules.remove(module.getId());
        saveToLocalFile(confPath);
    }
Thread for core thread.

@return runnable profile.
inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java