DEFAULT_EVENT_DRAIN_BUDGET_MS
constDEFAULT_EVENT_DRAIN_BUDGET_MS:25000=25_000
Defined in: packages/server/src/events/consumer.ts:106
The wall-clock budget one EventConsumer.drainOnce pass gets, when the caller sets nothing.
Set it under your platform’s invocation wall-clock cap, with head-room for one callback: the budget is only ever checked BETWEEN sub-batches, so a pass can overrun it by however long the callback that was already running takes. 25 s suits the common serverless caps (Supabase Edge, Vercel, Cloud Run jobs); a platform with a tighter cap wants a tighter budget, and a generous one (a cron container) can raise it.