From 781b14d0bbe77d3731587ca4c39ee4a6133a9c1f Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 18 Dec 2024 10:18:37 +0000 Subject: [PATCH] fix(specs): endpoint level timeout for ingestion (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4251 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- packages/ingestion/src/ingestionClient.ts | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/packages/ingestion/src/ingestionClient.ts b/packages/ingestion/src/ingestionClient.ts index bef6284fa..bbfdc5357 100644 --- a/packages/ingestion/src/ingestionClient.ts +++ b/packages/ingestion/src/ingestionClient.ts @@ -1730,6 +1730,15 @@ export function createIngestionClient({ data: pushTaskPayload, }; + requestOptions = { + timeouts: { + connect: 180000, + read: 180000, + write: 180000, + ...requestOptions?.timeouts, + }, + }; + return transporter.request(request, requestOptions); }, @@ -2075,6 +2084,15 @@ export function createIngestionClient({ headers, }; + requestOptions = { + timeouts: { + connect: 180000, + read: 180000, + write: 180000, + ...requestOptions?.timeouts, + }, + }; + return transporter.request(request, requestOptions); }, @@ -2427,6 +2445,15 @@ export function createIngestionClient({ data: sourceCreate ? sourceCreate : {}, }; + requestOptions = { + timeouts: { + connect: 180000, + read: 180000, + write: 180000, + ...requestOptions?.timeouts, + }, + }; + return transporter.request(request, requestOptions); }, @@ -2466,6 +2493,15 @@ export function createIngestionClient({ data: sourceUpdate, }; + requestOptions = { + timeouts: { + connect: 180000, + read: 180000, + write: 180000, + ...requestOptions?.timeouts, + }, + }; + return transporter.request(request, requestOptions); }, };