minor redis adjustments
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
18
src/utils/healthchecks.py
Normal 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"
|
||||
Reference in New Issue
Block a user