Opened 4 years ago
Closed 4 years ago
#32589 closed Uncategorized (duplicate)
Document the need for calling close_old_connections in long-running management commands.
Reported by: | GwynBleidD | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 3.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It is mentioned in one of the DEPs that any long-running management command should periodically call close_old_connections
to get rid of any connections that can't be re-used any longer, but there is no mention about that anywhere in the Documentation.
This should be probably documented somewhere next to the management commands or in advanced database usage examples.
Note:
See TracTickets
for help on using tickets.
I'm inclined to think this should be part of #14845, connections management in general being a little under-documented.