Skip to content

Commit 9988a46

Browse files
spicyfalafelclaude
andcommitted
fix: increase waitForTask timeout from 5s to 120s
Default meilisearch JS client timeout (5s) was causing CrashLoopBackOff in k8s when indexing 35k+ documents. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 5fd864c commit 9988a46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/meilisearch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function createClient(hostUrl: string, apiKey: string): MeilisearchClient
1616
const client = new MeiliSearch({
1717
host: hostUrl,
1818
apiKey: apiKey,
19+
defaultWaitOptions: { timeout: 120_000 },
1920
});
2021

2122
return { client, hostUrl, apiKey };

0 commit comments

Comments
 (0)