From 7b91737953148563a67e8f29d015af5d7f7295c9 Mon Sep 17 00:00:00 2001 From: Thomas Kosmas Date: Fri, 10 Oct 2025 23:53:47 +0300 Subject: [PATCH] Feat/test new mu alt (#2270) * new mu alternative * fix mu v2 experiment * v2 on a part of the traffic --- apps/api/src/scraper/scrapeURL/engines/pdf/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts index 66f2f0e4d..7b300fac4 100644 --- a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts +++ b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts @@ -71,7 +71,9 @@ async function scrapePDFWithRunPodMU( if ( process.env.PDF_MU_V2_EXPERIMENT === "true" && - process.env.PDF_MU_V2_BASE_URL + process.env.PDF_MU_V2_BASE_URL && + Math.random() * 100 < + Number(process.env.PDF_MU_V2_EXPERIMENT_PERCENT ?? "100") ) { (async () => { const startedAt = Date.now();