in backend/model_garden/views/health_check.py [0:0]
def get(self, request, *args, **kwargs):
if request.GET.get('cvat', 'false').lower() == 'true':
try:
CvatService()
except Exception as e:
return HttpResponse(
content=f"Failed to connect to CVAT: {e}",
status=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
return HttpResponse("ok")