From acfdc8da771dc7dc53acddf9ad93ad74d7f7b948 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Tue, 4 Jun 2024 20:31:51 +0530 Subject: [PATCH] Explicitly set the connection age to 0 in the django settings. Seems to be some strange behavior with async gunicorn + django db --- src/khoj/app/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/app/settings.py b/src/khoj/app/settings.py index 98bc95cf..a46e83f9 100644 --- a/src/khoj/app/settings.py +++ b/src/khoj/app/settings.py @@ -121,7 +121,7 @@ DATABASES = { "USER": os.getenv("POSTGRES_USER", "postgres"), "NAME": os.getenv("POSTGRES_DB", "khoj"), "PASSWORD": os.getenv("POSTGRES_PASSWORD", "postgres"), - "CONN_MAX_AGE": 200, + "CONN_MAX_AGE": 0, } }