#32589: Document the need for calling close_old_connections in long-running
management commands.
-----------------------------------------+------------------------
Reporter: GwynBleidD | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
It is mentioned in
[
https://github.com/django/deps/blame/main/accepted/0009-async.rst#L429-L431 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/32589>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.