Skip to content

Commit

Permalink
fix(specs): endpoint level timeout for ingestion (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4251

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Dec 18, 2024
1 parent 4f59d81 commit 781b14d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/ingestion/src/ingestionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,15 @@ export function createIngestionClient({
data: pushTaskPayload,
};

requestOptions = {
timeouts: {
connect: 180000,
read: 180000,
write: 180000,
...requestOptions?.timeouts,
},
};

return transporter.request(request, requestOptions);
},

Expand Down Expand Up @@ -2075,6 +2084,15 @@ export function createIngestionClient({
headers,
};

requestOptions = {
timeouts: {
connect: 180000,
read: 180000,
write: 180000,
...requestOptions?.timeouts,
},
};

return transporter.request(request, requestOptions);
},

Expand Down Expand Up @@ -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);
},

Expand Down Expand Up @@ -2466,6 +2493,15 @@ export function createIngestionClient({
data: sourceUpdate,
};

requestOptions = {
timeouts: {
connect: 180000,
read: 180000,
write: 180000,
...requestOptions?.timeouts,
},
};

return transporter.request(request, requestOptions);
},
};
Expand Down

0 comments on commit 781b14d

Please sign in to comment.