mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
improvement(logs): raise execution log size limits to 3MB / 512KB (#4778)
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user