Fix health check

This commit is contained in:
Joseph Schorr 2017-02-15 16:20:05 -05:00
parent f8d74305e1
commit 8ec6221ca2

View file

@ -1,12 +1,9 @@
import logging
from data.database import TeamRole
from util.config.validator import validate_database_url
from data.database import TeamRole, validate_database_url
logger = logging.getLogger(__name__)
def check_health(app_config):
# Attempt to connect to the database first. If the DB is not responding,
# using the validate_database_url will timeout quickly, as opposed to