Fix health check
This commit is contained in:
parent
f8d74305e1
commit
8ec6221ca2
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Reference in a new issue