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