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

Function pruneExpiredMemoryStreams

apps/sim/lib/execution/event-buffer.ts:354–360  ·  view source on GitHub ↗
(now = Date.now())

Source from the content-addressed store, hash-verified

352}
353
354function pruneExpiredMemoryStreams(now = Date.now()): void {
355 for (const [executionId, stream] of memoryExecutionStreams) {
356 if (stream.expiresAt <= now) {
357 memoryExecutionStreams.delete(executionId)
358 }
359 }
360}
361
362function getMemoryStream(executionId: string): MemoryExecutionStream {
363 pruneExpiredMemoryStreams()

Callers 3

getMemoryStreamFunction · 0.70
readMemoryMetaFunction · 0.70
readMemoryEventsFunction · 0.70

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected