(payload: CleanupJobPayload)
| 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) |
no outgoing calls
no test coverage detected