Summary
Handle SIGINT/SIGTERM to close the HTTP server and the Postgres pool cleanly.
Scope
Likely files
src/app.js (or server entry)
src/lib/db.js (close)
Acceptance criteria
- On signal, in-flight requests finish, then the pool closes
- Process exits without hanging connections
- No errors logged on normal shutdown
Verification
- Start the server, send SIGTERM, confirm clean exit
Labels: backend, enhancement, good first issue
Summary
Handle
SIGINT/SIGTERMto close the HTTP server and the Postgres pool cleanly.Scope
Likely files
src/app.js(or server entry)src/lib/db.js(close)Acceptance criteria
Verification
Labels:
backend,enhancement,good first issue