Skip to content

Commit 271bfe9

Browse files
committed
Update status info
1 parent 57fe2c9 commit 271bfe9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

rnacentral/portal/views.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,17 @@ def expert_database_view(request, expert_db_name):
380380
@never_cache
381381
def website_status_view(request):
382382
"""
383-
This view will be monitored by Nagios for the presence
384-
of string "All systems operational".
383+
This view will be used by Traffic Manager to check for the presence of the
384+
text "All systems operational". Traffic will be redirected to the HX
385+
cluster if this function returns a problem. For more information, see the
386+
vtm-terraform-config project on GitLab (monitors.tf file).
385387
"""
386388

387389
def _is_database_up():
388390
try:
389-
rna = Rna.objects.all()[0]
391+
Database.objects.get(id=1)
390392
return True
391-
except:
393+
except Database.DoesNotExist:
392394
return False
393395

394396
def _is_api_up():

0 commit comments

Comments
 (0)