private void updateModule(ModuleConfig localModule, ModuleConfig managerModule) {
        LOGGER.info("update module {}({}) start", localModule.getId(), localModule.getName());
        if (localModule.getPackageConfig().getMd5().equals(managerModule.getPackageConfig().getMd5())) {
            LOGGER.info("module {}({}) package md5 no change, will restart and save config", localModule.getId(),
                    localModule.getName());
            restartModule(localModule, managerModule);
            managerModule.setState(localModule.getState());
            updateModuleConfig(managerModule);
        } else {
            LOGGER.info("module {}({}) package md5 changed, will reinstall", localModule.getId(),
                    localModule.getName());
            deleteModule(localModule);
            addModule(managerModule);
        }
        LOGGER.info("update module {}({}) end", localModule.getId(), localModule.getName());
    }
Thread for core thread.

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