diff --git a/lms/djangoapps/heartbeat/views.py b/lms/djangoapps/heartbeat/views.py index 1d053d3da0..956504407b 100644 --- a/lms/djangoapps/heartbeat/views.py +++ b/lms/djangoapps/heartbeat/views.py @@ -1,6 +1,7 @@ import json from datetime import datetime from django.http import HttpResponse +from xmodule.modulestore.django import modulestore def heartbeat(request): @@ -8,6 +9,7 @@ def heartbeat(request): Simple view that a loadbalancer can check to verify that the app is up """ output = { - 'date': datetime.now().isoformat() + 'date': datetime.now().isoformat(), + 'courses': [course.location.url() for course in modulestore().get_courses()], } return HttpResponse(json.dumps(output, indent=4))