improvement(logs): raise execution log size limits to 3MB / 512KB (#4778)

This commit is contained in:
Theodore Li
2026-05-28 19:31:11 -04:00
committed by GitHub
parent d382df612a
commit f778d01235
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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({
+2 -2
View File
@@ -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