From 6a129bc0545fe274d9e1d7ca167c35104df31a27 Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 9 Dec 2025 21:02:57 +0000 Subject: [PATCH] chore: lower concurrency on index upload (#11351) * chore: lower concurrency on index upload * chore: increase timeout --- packages/actions/src/uploadSearchIndices/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/actions/src/uploadSearchIndices/index.ts b/packages/actions/src/uploadSearchIndices/index.ts index aaf199a92..4e72b9783 100644 --- a/packages/actions/src/uploadSearchIndices/index.ts +++ b/packages/actions/src/uploadSearchIndices/index.ts @@ -30,7 +30,7 @@ const client = new MeiliSearch({ apiKey: process.env.SEARCH_API_KEY, }); -const limit = pLimit(10); +const limit = pLimit(5); try { console.log('Generating all indices...'); @@ -73,7 +73,7 @@ try { } catch {} if (task) { - await client.tasks.waitForTask(task); + await client.tasks.waitForTask(task, { timeout: 10_000 }); } const searchIndex = client.index(index.index);