minor redis adjustments
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-11-28 20:17:17 +01:00
parent 791003f89e
commit 73c1636063
7 changed files with 38 additions and 2 deletions

View File

@@ -1 +1,3 @@
from .aes_encrypt import AESCrypto
from .healthchecks import redis_available
from .errorhandlers import register_all_error_handlers

18
src/utils/healthchecks.py Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env python3
from flaskaddons import flaskred
"""
Healthchek functions
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, onSpot Team"
__module_name__ = "healthchecks"
__version__text__ = "1"
def redis_available():
flaskred.info()
return True, "redis ok"