From 73f652081a705b9b58b42b964529226f581f54a3 Mon Sep 17 00:00:00 2001 From: dal Date: Mon, 7 Jul 2025 17:14:12 -0600 Subject: [PATCH] increase timeouts --- .../src/tools/visualization-tools/create-metrics-file-tool.ts | 2 +- packages/data-source/src/adapters/snowflake.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts b/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts index 54e8d29b4..e7dbf2c5c 100644 --- a/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts +++ b/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts @@ -1294,7 +1294,7 @@ async function validateSql( // Retry configuration for SQL validation const MAX_RETRIES = 3; - const TIMEOUT_MS = 30000; // 30 seconds per attempt + const TIMEOUT_MS = 120000; // 120 seconds (2 minutes) per attempt const RETRY_DELAYS = [1000, 3000, 6000]; // 1s, 3s, 6s // Attempt execution with retries diff --git a/packages/data-source/src/adapters/snowflake.ts b/packages/data-source/src/adapters/snowflake.ts index 1c122c188..889953fdb 100644 --- a/packages/data-source/src/adapters/snowflake.ts +++ b/packages/data-source/src/adapters/snowflake.ts @@ -99,8 +99,8 @@ export class SnowflakeAdapter extends BaseAdapter { try { connection = await this.pool.acquire(); - // Set query timeout if specified (default: 60 seconds) - const timeoutMs = timeout || 60000; + // Set query timeout if specified (default: 120 seconds) + const timeoutMs = timeout || 120000; // If no maxRows specified, use regular query if (!maxRows || maxRows <= 0) {