We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e1137ba + 0822c0a commit ba14f4dCopy full SHA for ba14f4d
gbm_apis/api/health.py
@@ -3,7 +3,7 @@
3
from django.views import View
4
from django.utils.decorators import method_decorator
5
from django.views.decorators.csrf import csrf_exempt
6
-from django.db import connection
+# from django.db import connection
7
from django.conf import settings
8
9
logger = logging.getLogger(f'gnana.{__name__}')
@@ -26,8 +26,8 @@ def get(self, request):
26
27
try:
28
## TODO Mongo HEalth CHeck
29
- with connection.cursor() as cursor:
30
- cursor.execute("SELECT 1")
+ # with connection.cursor() as cursor:
+ # cursor.execute("SELECT 1")
31
health_status["checks"]["database"] = "ok"
32
except Exception as db_error:
33
logger.warning(f"Database health check failed: {str(db_error)}")
0 commit comments