private void traverseLocalModulesToManager(Map<Integer, ModuleConfig> modulesFromManager) {
        currentModules.values().forEach((localModule) -> {
            ModuleConfig managerModule = modulesFromManager.get(localModule.getId());
            if (managerModule == null) {
                LOGGER.info("traverseLocalModulesToManager module {}({}) {} not found in local, delete it",
                        localModule.getId(), localModule.getName(), localModule.getVersion());
                deleteModule(localModule);
            }
        });
    }
Thread for core thread.

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