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) {