mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-25 19:21:09 +00:00
884a82d814
* add missing __main__ call to commands.py * remove unnecessary imports * fix backup WITH_FILES logic * follow python semantics (?) Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
25 lines
610 B
Python
25 lines
610 B
Python
from check_connection import (
|
|
check_mariadb,
|
|
check_redis_cache,
|
|
check_redis_queue,
|
|
check_redis_socketio,
|
|
)
|
|
|
|
|
|
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)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|