From 475e0e724207be353ef9be0fc910ba5d89f85f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 6 Dec 2020 11:14:40 +0100 Subject: [PATCH] update helathcheck --- storage_service/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage_service/app.py b/storage_service/app.py index 5dd2eb4..ccb9af1 100644 --- a/storage_service/app.py +++ b/storage_service/app.py @@ -42,7 +42,7 @@ app.config['MINIO_BUCKET_NAME'] = os.environ['MINIO_BUCKET_NAME'] app.config['MINIO_SECURE'] = os.environ.get('MINIO_SECURE', False) app.config['MINIO_REGION'] = os.environ.get('MINIO_REGION', None) -health = HealthCheck(app, "/healthz") +health = HealthCheck() # register error handlers @@ -53,6 +53,7 @@ for view in [ObjectView]: view.register(app, trailing_slash=False) health.add_check(health_database_status) +app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run()) # start debugging if needed if __name__ == "__main__":