Skip to content

Commit

Permalink
fix indexing task waiting timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wulff007 committed Oct 27, 2024
1 parent 3705f70 commit 897dbb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/data-indexer/data-indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ export class DataIndexer {


let taskUid = (await index.addDocuments(docs)).taskUid

let task = await this.searchClient.waitForTask(taskUid)
let task = await this.searchClient.waitForTask(taskUid, {timeOutMs: 60 * 1000})
if (task.status !== 'succeeded')
throw task.error

Expand Down

0 comments on commit 897dbb1

Please sign in to comment.