We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb53742 commit 159cecaCopy full SHA for 159ceca
1 file changed
patchman/celery.py
@@ -20,6 +20,7 @@
20
from celery.signals import task_prerun
21
22
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'patchman.settings') # noqa
23
+from django import db # noqa
24
from django.conf import settings # noqa
25
26
app = Celery('patchman')
@@ -36,5 +37,4 @@ def close_stale_connections(**kwargs):
36
37
(MySQL) or 'server closed the connection unexpectedly' (PostgreSQL)
38
when the DB server drops idle connections.
39
"""
- from django import db
40
db.close_old_connections()
0 commit comments