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

Function emitChunk

apps/sim/lib/billing/cleanup-dispatcher.ts:219–226  ·  view source on GitHub ↗
(payload: CleanupJobPayload)

Source from the content-addressed store, hash-verified

217 let afterId: string | null = null
218
219 const emitChunk = async (payload: CleanupJobPayload) => {
220 if (payload.plan === housekeepingPlan && !housekeepingAssigned) {
221 payload.runGlobalHousekeeping = true
222 housekeepingAssigned = true
223 }
224 chunkCount++
225 await onChunk(payload)
226 }
227
228 while (true) {
229 const rows = await listActiveWorkspaceCleanupScopeRowsPage(afterId)

Callers 1

forEachCleanupChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected