Increase wait timeout

This commit is contained in:
Chocobozzz 2023-11-13 11:18:06 +01:00
parent 71e310f639
commit 603b3b31a6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export abstract class AbstractIndexer <T extends IndexableDoc, DB> {
this.indexQueue = queue<QueueParam, Error>(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) {