private boolean isPackageDownloaded(ModuleConfig module) {
        String path =
                getRealPath(module.getPackageConfig().getStoragePath()) + "/" + module.getPackageConfig().getFileName();
        String fileMd5 = calcFileMd5(path);
        if (Objects.equals(fileMd5, module.getPackageConfig().getMd5())) {
            return true;
        } else {
            LOGGER.error("module {}({}) md5 not match! fileMd5 {} moduleMd5 {}", module.getId(), module.getName(),
                    fileMd5, module.getPackageConfig().getMd5());
            return false;
        }
    }
Thread for core thread.

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