complete easy endpoints
This commit is contained in:
17
src/healthchecks.py
Normal file
17
src/healthchecks.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from redis_client import redis_client
|
||||
|
||||
"""
|
||||
Healthchek functions
|
||||
"""
|
||||
|
||||
__author__ = "@tormakris"
|
||||
__copyright__ = "Copyright 2021, KMLabz Team"
|
||||
__module_name__ = "healthchecks"
|
||||
__version__text__ = "1"
|
||||
|
||||
|
||||
def redis_available():
|
||||
redisstatus = redis_client.info()
|
||||
return True, redisstatus
|
||||
Reference in New Issue
Block a user