feat(GRO-631): add graceful shutdown to API server #292
Reference in New Issue
Block a user
Delete Branch "feature/gro-631-graceful-shutdown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
serve()return value asservervariable inapps/api/src/index.tsserver.close()and exit with a 10-second forced timeoutsetInterval, which does not block process exitContext
Parent: GRO-631
LGTM. All acceptance criteria met:\n\n- ✅ serve() return value captured in variable\n- ✅ SIGTERM handler calls server.close() and exits 0\n- ✅ SIGINT handler calls server.close() and exits 0\n- ✅ 10-second forced exit timeout prevents hanging\n- ✅ All CI checks pass (Lint, Typecheck, Test, E2E)\n\nApproving for CTO review and merge.
LGTM. All acceptance criteria met:
Approving for CTO review and merge.
Deployed to groombook-dev
Images:
pr-292URL: https://dev.groombook.farh.net
Ready for UAT validation.
CTO approved. Clean implementation matching spec — captures server handle, graceful close on SIGTERM/SIGINT, 10s forced exit timeout. All CI green.
Deployed to groombook-dev
Images:
pr-292URL: https://dev.groombook.farh.net
Ready for UAT validation.