2020-03-14 17:17:35 +00:00
|
|
|
from check_connection import (
|
|
|
|
check_mariadb,
|
|
|
|
check_redis_cache,
|
|
|
|
check_redis_queue,
|
|
|
|
check_redis_socketio,
|
|
|
|
)
|
2020-02-10 08:00:54 +00:00
|
|
|
|
2020-04-28 20:15:59 +00:00
|
|
|
|
2020-03-14 17:17:35 +00:00
|
|
|
def main():
|
|
|
|
check_mariadb(retry=1, delay=0, print_attempt=False)
|
|
|
|
print("MariaDB Connected")
|
|
|
|
check_redis_cache(retry=1, delay=0, print_attempt=False)
|
|
|
|
print("Redis Cache Connected")
|
|
|
|
check_redis_queue(retry=1, delay=0, print_attempt=False)
|
|
|
|
print("Redis Queue Connected")
|
|
|
|
check_redis_socketio(retry=1, delay=0, print_attempt=False)
|
|
|
|
print("Redis SocketIO Connected")
|
|
|
|
|
|
|
|
print("Health check successful")
|
|
|
|
exit(0)
|
|
|
|
|
2020-04-28 20:15:59 +00:00
|
|
|
|
2020-03-14 17:17:35 +00:00
|
|
|
if __name__ == "__main__":
|
2020-03-20 15:26:23 +00:00
|
|
|
main()
|