Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/sim/lib/logs/execution/logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/lib/logs/execution/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const TRIGGER_COUNTER_MAP: Record<string, { key: string; column: string }> = {
} as const

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
Expand Down
Loading