Add health checks for the django ORM

This commit is contained in:
sabaimran 2024-07-07 16:11:28 +05:30
parent a31cd0dec1
commit 0eb000c3ea

View file

@ -122,6 +122,7 @@ DATABASES = {
"NAME": os.getenv("POSTGRES_DB", "khoj"), "NAME": os.getenv("POSTGRES_DB", "khoj"),
"PASSWORD": os.getenv("POSTGRES_PASSWORD", "postgres"), "PASSWORD": os.getenv("POSTGRES_PASSWORD", "postgres"),
"CONN_MAX_AGE": 0, "CONN_MAX_AGE": 0,
"CONN_HEALTH_CHECKS": True,
} }
} }