From 603b3b31a6ae97b9096a8c1af86c680db0603bbd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 Nov 2023 11:18:06 +0100 Subject: [PATCH] Increase wait timeout --- server/lib/indexers/shared/abstract-indexer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/indexers/shared/abstract-indexer.ts b/server/lib/indexers/shared/abstract-indexer.ts index 0a0fa4a..d45c57e 100644 --- a/server/lib/indexers/shared/abstract-indexer.ts +++ b/server/lib/indexers/shared/abstract-indexer.ts @@ -28,7 +28,7 @@ export abstract class AbstractIndexer { this.indexQueue = queue(async (task, cb) => { try { const { taskUid } = await this.indexSpecificElement(task.host, task.identifier) - await client.index(this.indexName).waitForTask(taskUid) + await client.index(this.indexName).waitForTask(taskUid, { timeOutMs: 1000 * 60 * 5 }) // 5 minutes timeout return cb() } catch (err) {