From f778d01235fb4c607b8c4211ec3969ef0517eee7 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Thu, 28 May 2026 16:31:11 -0700 Subject: [PATCH] improvement(logs): raise execution log size limits to 3MB / 512KB (#4778) --- apps/sim/lib/logs/execution/logger.test.ts | 4 ++-- apps/sim/lib/logs/execution/logger.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/sim/lib/logs/execution/logger.test.ts b/apps/sim/lib/logs/execution/logger.test.ts index 645168c232..1cca0faca7 100644 --- a/apps/sim/lib/logs/execution/logger.test.ts +++ b/apps/sim/lib/logs/execution/logger.test.ts @@ -171,7 +171,7 @@ describe('ExecutionLogger', () => { test('summarizes oversized execution data before storage', () => { const loggerInstance = new ExecutionLogger() as any - const largePayload = 'x'.repeat(220_000) + const largePayload = 'x'.repeat(1_100_000) const executionState = { blockStates: { blockA: { @@ -242,7 +242,7 @@ describe('ExecutionLogger', () => { ) const storedBytes = Buffer.byteLength(JSON.stringify(compacted), 'utf8') - expect(storedBytes).toBeLessThanOrEqual(500 * 1024) + expect(storedBytes).toBeLessThanOrEqual(3 * 1024 * 1024) expect(compacted.executionDataTruncated).toBe(true) expect(compacted.executionState).toBeUndefined() expect(compacted.executionStateSummary).toEqual({ diff --git a/apps/sim/lib/logs/execution/logger.ts b/apps/sim/lib/logs/execution/logger.ts index 4867f4f58c..e52b92f427 100644 --- a/apps/sim/lib/logs/execution/logger.ts +++ b/apps/sim/lib/logs/execution/logger.ts @@ -42,9 +42,9 @@ import type { import type { SerializableExecutionState } from '@/executor/execution/types' const logger = createLogger('ExecutionLogger') -const MAX_EXECUTION_DATA_BYTES = 500 * 1024 +const MAX_EXECUTION_DATA_BYTES = 3 * 1024 * 1024 const MAX_TRACE_IO_BYTES = 8 * 1024 -const MAX_WORKFLOW_VALUE_BYTES = 64 * 1024 +const MAX_WORKFLOW_VALUE_BYTES = 512 * 1024 const EXECUTION_LOG_STATEMENT_TIMEOUT_MS = 30_000 const EXECUTION_LOG_LOCK_TIMEOUT_MS = 3_000 const EXECUTION_LOG_IDLE_TIMEOUT_MS = 5_000