Skip to content

Commit f778d01

Browse files
improvement(logs): raise execution log size limits to 3MB / 512KB (#4778)
1 parent d382df6 commit f778d01

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/sim/lib/logs/execution/logger.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe('ExecutionLogger', () => {
171171

172172
test('summarizes oversized execution data before storage', () => {
173173
const loggerInstance = new ExecutionLogger() as any
174-
const largePayload = 'x'.repeat(220_000)
174+
const largePayload = 'x'.repeat(1_100_000)
175175
const executionState = {
176176
blockStates: {
177177
blockA: {
@@ -242,7 +242,7 @@ describe('ExecutionLogger', () => {
242242
)
243243
const storedBytes = Buffer.byteLength(JSON.stringify(compacted), 'utf8')
244244

245-
expect(storedBytes).toBeLessThanOrEqual(500 * 1024)
245+
expect(storedBytes).toBeLessThanOrEqual(3 * 1024 * 1024)
246246
expect(compacted.executionDataTruncated).toBe(true)
247247
expect(compacted.executionState).toBeUndefined()
248248
expect(compacted.executionStateSummary).toEqual({

apps/sim/lib/logs/execution/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ import type {
4242
import type { SerializableExecutionState } from '@/executor/execution/types'
4343

4444
const logger = createLogger('ExecutionLogger')
45-
const MAX_EXECUTION_DATA_BYTES = 500 * 1024
45+
const MAX_EXECUTION_DATA_BYTES = 3 * 1024 * 1024
4646
const MAX_TRACE_IO_BYTES = 8 * 1024
47-
const MAX_WORKFLOW_VALUE_BYTES = 64 * 1024
47+
const MAX_WORKFLOW_VALUE_BYTES = 512 * 1024
4848
const EXECUTION_LOG_STATEMENT_TIMEOUT_MS = 30_000
4949
const EXECUTION_LOG_LOCK_TIMEOUT_MS = 3_000
5050
const EXECUTION_LOG_IDLE_TIMEOUT_MS = 5_000

0 commit comments

Comments
 (0)