Commit 69d0ec29 by Calen Pennington

Don't connect to Elasticsearch on startup, since it may not be needed for all…

Don't connect to Elasticsearch on startup, since it may not be needed for all tasks (like static assets)
parent 0b583f7c
......@@ -14,7 +14,7 @@ class CoursesConfig(AppConfig):
verbose_name = 'Courses'
def ready(self):
if settings.ELASTICSEARCH.get('connect_on_startup', True):
if settings.ELASTICSEARCH.get('connect_on_startup', False):
host = settings.ELASTICSEARCH['host']
index = settings.ELASTICSEARCH['index']
......
......@@ -251,7 +251,6 @@ SWAGGER_SETTINGS = {
ELASTICSEARCH = {
'host': '',
'index': 'course_discovery',
'connect_on_startup': True
}
# TODO Replace with None and document.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment