Don't use postgres connection pool for qclusters
This commit is contained in:
parent
1255d0ddc6
commit
fdd7011920
@ -28,7 +28,11 @@ class Base(Configuration):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setup(cls):
|
def setup(cls):
|
||||||
super().setup()
|
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 = [
|
INSTALLED_APPS = [
|
||||||
"dal",
|
"dal",
|
||||||
|
Loading…
Reference in New Issue
Block a user