Removed db stuffs

This commit is contained in:
2021-08-17 17:16:01 +02:00
parent cbaf2f2981
commit ca548f0863
8 changed files with 3 additions and 182 deletions

View File

@@ -1,6 +1,4 @@
#!/usr/bin/env python3
from db import db
from magic_amqp import magic_amqp
"""
@@ -13,17 +11,6 @@ __module_name__ = "healthchecks"
__version__text__ = "1"
def health_database_status():
is_database_working = True
output = 'database is ok'
try:
db.session.execute('SELECT 1')
except Exception as e:
output = str(e)
is_database_working = False
return is_database_working, output
def amqp_connection_status():
if magic_amqp.is_healthy():
result = True