MCPcopy Index your code
hub / github.com/simstudioai/sim / flushCore

Function flushCore

apps/sim/lib/execution/event-buffer.ts:998–1007  ·  view source on GitHub ↗
(scheduleOnFailure: boolean)

Source from the content-addressed store, hash-verified

996 }
997
998 const flushCore = async (scheduleOnFailure: boolean) => {
999 await writeQueue
1000 const ok = await flushPending(scheduleOnFailure)
1001 if (writeFailure) {
1002 throw writeFailure
1003 }
1004 if (!ok) {
1005 throw new Error(`Failed to flush execution events for ${executionId}`)
1006 }
1007 }
1008
1009 const flush = async () => {
1010 await flushCore(true)

Callers 2

closeFunction · 0.85
flushFunction · 0.85

Calls 1

flushPendingFunction · 0.85

Tested by

no test coverage detected