EventDrainSummary
Defined in: packages/server/src/events/consumer.ts:174
What one EventConsumer.drainOnce pass reports back. Counts are SUB-BATCHES (one queue message, one callback invocation), the unit the queue and the dead-letter archive both work in.
Properties
Section titled “Properties”deadLettered
Section titled “deadLettered”deadLettered:
number
Defined in: packages/server/src/events/consumer.ts:181
Sub-batches this pass moved to the backend’s dead-letter storage.
delivered
Section titled “delivered”delivered:
number
Defined in: packages/server/src/events/consumer.ts:179
Sub-batches whose callback completed during this pass. An ack that then failed still counts — the work was delivered, and at-least-once means it may be delivered again later (the callback is idempotent).
empty:
boolean
Defined in: packages/server/src/events/consumer.ts:190
true when every configured Event stream read empty before the budget ran out — the queue is drained
as far as this pass can see.
false means the pass ended with work possibly still queued: the budget cut it short, or a stream’s
read faulted. It is the caller’s signal that another tick has something to do — a scheduler that
chains passes should invoke again promptly rather than waiting out its full period.