I hate Redis!
- Remove redis check from our health endpoint in prod entirely - Have the redis check have a maximum timeout of 1 second
This commit is contained in:
parent
ad53bf5671
commit
c518874ded
3 changed files with 22 additions and 10 deletions
|
@ -39,10 +39,13 @@ _SERVICES = {
|
|||
'redis': _check_redis
|
||||
}
|
||||
|
||||
def check_all_services(app):
|
||||
def check_all_services(app, skip):
|
||||
""" Returns a dictionary containing the status of all the services defined. """
|
||||
status = {}
|
||||
for name in _SERVICES:
|
||||
if name in skip:
|
||||
continue
|
||||
|
||||
status[name] = _SERVICES[name](app)
|
||||
|
||||
return status
|
||||
return status
|
||||
|
|
Reference in a new issue