Type Alias: SweepResult
type SweepResult = {
expired: number;
found: number;
skipped: number;
};Defined in: server/bookings/hold-sweeper.ts:16
Properties
expired
expired: number;Defined in: server/bookings/hold-sweeper.ts:20
Number of bookings (individual rows) successfully expired.
found
found: number;Defined in: server/bookings/hold-sweeper.ts:18
Number of held rows returned by the initial findExpiredHolds query (before group expansion).
skipped
skipped: number;Defined in: server/bookings/hold-sweeper.ts:30
Number of bookings skipped because a concurrent transition won the race:
StaleBookingError— a confirm (or another sweeper) won the version-CAS race before the sweeper'supdateIfVersioncould commit.InvalidTransitionError— the sweeper's in-tx hydrate ran after the winner already committed, somachine.next("confirmed", "expire")sees the new status and rejects the transition outright. Both shapes are safe; neither allows a confirmed-but-non-blocking row.