Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: increase timeouts for exports (#10682)

Max Deichmannb95cbf7bfbb7
diff --git a/worker/src/features/database-read-stream/getDatabaseReadStream.ts b/worker/src/features/database-read-stream/getDatabaseReadStream.ts
index 72f6b64c0b..0b4a9b896b 100644
--- a/worker/src/features/database-read-stream/getDatabaseReadStream.ts
+++ b/worker/src/features/database-read-stream/getDatabaseReadStream.ts
@@ -120,7 +120,7 @@ export const getDatabaseReadStreamPaginated = async ({
};
const clickhouseConfigs = {
- request_timeout: 120_000,
+ request_timeout: 180_000,
};
switch (tableName) {
@@ -385,7 +385,7 @@ export const getDatabaseReadStreamPaginated = async ({
undefined as Date | undefined,
),
{
- request_timeout: 120_000,
+ request_timeout: 180_000,
},
),
]);
@@ -698,7 +698,7 @@ export const getTraceIdentifierStream = async (props: {
};
const clickhouseConfigs = {
- request_timeout: 120_000,
+ request_timeout: 180_000,
};
return new DatabaseReadStream<TraceIdentifiers>(
diff --git a/worker/src/features/database-read-stream/observation-stream.ts b/worker/src/features/database-read-stream/observation-stream.ts
index 0fde838f68..8aedd60853 100644
--- a/worker/src/features/database-read-stream/observation-stream.ts
+++ b/worker/src/features/database-read-stream/observation-stream.ts
@@ -89,7 +89,7 @@ export const getObservationStream = async (props: {
rowLimit = env.BATCH_EXPORT_ROW_LIMIT,
} = props;
const clickhouseConfigs = {
- request_timeout: 120_000,
+ request_timeout: 180_000, // 3 minutes
clickhouse_settings: {
join_algorithm: "partial_merge" as const,
},
diff --git a/worker/src/features/database-read-stream/trace-stream.ts b/worker/src/features/database-read-stream/trace-stream.ts
index bbb7caaa74..d937cff730 100644
--- a/worker/src/features/database-read-stream/trace-stream.ts
+++ b/worker/src/features/database-read-stream/trace-stream.ts
@@ -43,7 +43,7 @@ export const getTraceStream = async (props: {
} = props;
const clickhouseConfigs = {
- request_timeout: 120_000,
+ request_timeout: 180_000,
clickhouse_settings: {
join_algorithm: "partial_merge" as const,
},