Same error family as BIT-31703: Prisma's default maxWait is 2s, so under brief pool contention PATCH /v1/events/:eventId's $transaction could fail to even start with Unable to start a transaction in the given time, despite the trivial transaction body itself finishing well within the default 5s timeout.
Sets maxWait/timeout to 10s, matching the headroom already used elsewhere (rebuildDirectory, assignGalleries) for this error family.
Fixes BIT-32057.
Test plan
npx vitest run test/library.test.ts — 23/23 passing (covers PATCH /v1/events/:eventId)
Confirmed the 18 unrelated tsc --noEmit errors on this branch are pre-existing on main (stale generated Prisma client vs newer migrations), not introduced by this change.
Same error family as BIT-31703: Prisma's default `maxWait` is 2s, so under brief pool contention `PATCH /v1/events/:eventId`'s `$transaction` could fail to even start with `Unable to start a transaction in the given time`, despite the trivial transaction body itself finishing well within the default 5s `timeout`.
Sets `maxWait`/`timeout` to 10s, matching the headroom already used elsewhere (`rebuildDirectory`, `assignGalleries`) for this error family.
Fixes BIT-32057.
## Test plan
- `npx vitest run test/library.test.ts` — 23/23 passing (covers PATCH /v1/events/:eventId)
- Confirmed the 18 unrelated `tsc --noEmit` errors on this branch are pre-existing on `main` (stale generated Prisma client vs newer migrations), not introduced by this change.
Same error family as BIT-31703: Prisma's default maxWait is 2s, so under
brief pool contention PATCH /v1/events/:eventId's $transaction could fail
to even start with 'Unable to start a transaction in the given time',
despite the trivial transaction body itself finishing well within the
default 5s timeout. Set maxWait/timeout to 10s to match the headroom
already used elsewhere (rebuildDirectory, assignGalleries) for this
error family.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Same error family as BIT-31703: Prisma's default
maxWaitis 2s, so under brief pool contentionPATCH /v1/events/:eventId's$transactioncould fail to even start withUnable to start a transaction in the given time, despite the trivial transaction body itself finishing well within the default 5stimeout.Sets
maxWait/timeoutto 10s, matching the headroom already used elsewhere (rebuildDirectory,assignGalleries) for this error family.Fixes BIT-32057.
Test plan
npx vitest run test/library.test.ts— 23/23 passing (covers PATCH /v1/events/:eventId)tsc --noEmiterrors on this branch are pre-existing onmain(stale generated Prisma client vs newer migrations), not introduced by this change.auto-approve: CI success on
2687fecffa(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
2687fecffa(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
2687fecffa(gitea_auto_approve_open_prs_once.py)