private boolean updateModules(List<ModuleConfig> managerModuleList) {
        Map<Integer, ModuleConfig> modulesFromManager = new ConcurrentHashMap<>();
        managerModuleList.forEach((moduleConfig) -> {
            modulesFromManager.put(moduleConfig.getId(), moduleConfig);
        });
        traverseManagerModulesToLocal(modulesFromManager);
        traverseLocalModulesToManager(modulesFromManager);
        return true;
    }
Thread for core thread.

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