Skip to content

Commit ba14f4d

Browse files
Merge pull request #27 from gnanarepo/ujjawal_core
health
2 parents e1137ba + 0822c0a commit ba14f4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gbm_apis/api/health.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django.views import View
44
from django.utils.decorators import method_decorator
55
from django.views.decorators.csrf import csrf_exempt
6-
from django.db import connection
6+
# from django.db import connection
77
from django.conf import settings
88

99
logger = logging.getLogger(f'gnana.{__name__}')
@@ -26,8 +26,8 @@ def get(self, request):
2626

2727
try:
2828
## TODO Mongo HEalth CHeck
29-
with connection.cursor() as cursor:
30-
cursor.execute("SELECT 1")
29+
# with connection.cursor() as cursor:
30+
# cursor.execute("SELECT 1")
3131
health_status["checks"]["database"] = "ok"
3232
except Exception as db_error:
3333
logger.warning(f"Database health check failed: {str(db_error)}")

0 commit comments

Comments
 (0)