From fdd70119203a5ebfd7110d96b4060622b0230565 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 28 Aug 2024 22:14:02 -0400 Subject: [PATCH] Don't use postgres connection pool for qclusters --- cmsmanage/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmsmanage/settings.py b/cmsmanage/settings.py index 0d02ab8..11d158c 100644 --- a/cmsmanage/settings.py +++ b/cmsmanage/settings.py @@ -28,7 +28,11 @@ class Base(Configuration): @classmethod def setup(cls): super().setup() - cls.DATABASES["default"]["OPTIONS"] = {"pool": True} + + # TODO: this is a nasty hack, since the connection + # pool doesn't seem to work well with django-q2 + if "qcluster" not in sys.argv: + cls.DATABASES["default"]["OPTIONS"] = {"pool": True} INSTALLED_APPS = [ "dal",