You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 026741b
Browse filesBrowse the repository at this point in the historyBrowse files
[world-postgres] Fix process crash when the database closes an idle connection (#4817)
(AI) Extracted from #4661 to shrink it. No behavior change beyond the
fix below.
- **world-postgres**: the pool the World creates now has an `error`
listener. pg-pool re-emits a terminated idle client's error (`57P01`,
database restart, `pg_terminate_backend`) on the pool, and with no
listener that became an uncaught exception. Graphile Worker only listens
while the queue runs, and `pool.end()` resolves before idle sockets
close, so this could kill the process during or after `close()`. Test
teardown is already handled by `TestPool` (#4785); this covers the
World's own pool in production.
- **world-vercel** (test-only): tests that pin the backend URL via env
now skip while `WORKFLOW_SERVER_URL_OVERRIDE` is set, since the override
takes precedence over the env var
0 commit comments