Don't use postgres connection pool for qclusters

This commit is contained in:
Adam Goldsmith 2024-08-28 22:14:02 -04:00
parent 1255d0ddc6
commit fdd7011920

View File

@ -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",