From 0eb000c3eab478ccb42f4896491ab96dc0249d7e Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 7 Jul 2024 16:11:28 +0530 Subject: [PATCH] Add health checks for the django ORM --- src/khoj/app/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/khoj/app/settings.py b/src/khoj/app/settings.py index 93f449ab..99b784bc 100644 --- a/src/khoj/app/settings.py +++ b/src/khoj/app/settings.py @@ -122,6 +122,7 @@ DATABASES = { "NAME": os.getenv("POSTGRES_DB", "khoj"), "PASSWORD": os.getenv("POSTGRES_PASSWORD", "postgres"), "CONN_MAX_AGE": 0, + "CONN_HEALTH_CHECKS": True, } }