Add graceful shutdown handler for SIGTERM/SIGINT #911
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#911
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Add a graceful shutdown handler to the Express server for production deployment readiness. Required by #908 (Dockerfile).
Implementation:
Without this, Docker container restarts will leak database connections and may cause pool exhaustion under load.
Acceptance: Sending SIGTERM to the running server triggers logged shutdown sequence, closes DB pool, exits with code 0 within 10 seconds.
Generated by CEO Planner (priority: 3)