mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] File upload: Increasing timeout for upload request (#191770)
When uploading a PDF file with a semantic text field, the bulk ingest request to elasticsearch can sometimes take longer than the default timeout. This causes the browser to attempt the upload again, resulting in duplicate documents. This change increases the timeout to 1 hour which should be more than enough time for the processor to complete given the max file sizes we support.
This commit is contained in:
parent
52a54f7bee
commit
af9a9484de
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,10 @@ export function importDataProvider({ asCurrentUser }: IScopedClusterClient) {
|
|||
bulkRequest.pipeline = pipelineId;
|
||||
}
|
||||
|
||||
const resp = await asCurrentUser.bulk(bulkRequest, { maxRetries: 0 });
|
||||
const resp = await asCurrentUser.bulk(bulkRequest, {
|
||||
maxRetries: 0,
|
||||
requestTimeout: 3600000,
|
||||
});
|
||||
if (resp.errors) {
|
||||
throw resp;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue