[Django] #32589: Document the need for calling close_old_connections in long-running management commands.

12 views
Skip to first unread message

Django

unread,
Mar 24, 2021, 10:43:36 AM3/24/21
to django-...@googlegroups.com
#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.

Django

unread,
Mar 25, 2021, 3:10:52 AM3/25/21
to django-...@googlegroups.com
#32589: Document the need for calling close_old_connections in long-running
management commands.
-------------------------------+--------------------------------------
Reporter: GwynBleidD | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* status: new => closed
* resolution: => duplicate


Comment:

I'm inclined to think this should be part of #14845, connections
management in general being a little under-documented.

--
Ticket URL: <https://code.djangoproject.com/ticket/32589#comment:1>

Reply all
Reply to author
Forward
0 new messages