LabKey / platform

A set of modules that provide core functionality for LabKey Server
Apache License 2.0
7 stars 7 forks source link

Issue 51483: DB query can be left running after shutting down server #6003

Closed labkey-jeckels closed 1 week ago

labkey-jeckels commented 1 week ago

Rationale

Postgres doesn't always notice when the web server shuts down. Some connections and queries can linger for many minutes or hours depending on exactly what they're doing.

Explicitly closing the connection prior to shutdown helps in at least some cases.

Changes