Skip to content

Commit 764c012

Browse files
committed
Increase request timeout
1 parent b013209 commit 764c012

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/kbn-es-archiver/src/lib/docs/index_doc_records_stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function createIndexDocRecordsStream(
4444
);
4545
});
4646

47-
const resp = await client.bulk({ body });
47+
const resp = await client.bulk({ requestTimeout: 2 * 60 * 1000, body });
4848
if (resp.errors) {
4949
throw new Error(`Failed to index all documents: ${JSON.stringify(resp, null, 2)}`);
5050
}

0 commit comments

Comments
 (0)