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) {