Skip to content

LOW: Close database client on process exit #40

Description

@Brad-Edwards

Severity: Low (Quality C2)

`src/db/client.ts` — The postgres client is created at module scope but never closed. CLI jobs call `process.exit(0)` without draining the connection pool.

Recommendation: Export a `close()` function and call it before `process.exit()` in all CLI jobs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions