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

Function findDeadLetteredEvents

apps/sim/lib/core/outbox/service.ts:125–134  ·  view source on GitHub ↗
(
  eventTypes: string[]
)

Source from the content-addressed store, hash-verified

123 * runaway backlog from materializing unboundedly into memory each run.
124 */
125export async function findDeadLetteredEvents(
126 eventTypes: string[]
127): Promise<(typeof outboxEvent.$inferSelect)[]> {
128 if (eventTypes.length === 0) return []
129 return db
130 .select()
131 .from(outboxEvent)
132 .where(and(eq(outboxEvent.status, 'dead_letter'), inArray(outboxEvent.eventType, eventTypes)))
133 .limit(DEAD_LETTER_SCAN_LIMIT)
134}
135
136/**
137 * True when an event of the given type whose JSON payload has

Callers 1

route.tsFile · 0.90

Calls 1

eqFunction · 0.50

Tested by

no test coverage detected