update helathcheck
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-12-06 11:14:40 +01:00
parent ddee056c25
commit 475e0e7242

View File

@ -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_SECURE'] = os.environ.get('MINIO_SECURE', False)
app.config['MINIO_REGION'] = os.environ.get('MINIO_REGION', None) app.config['MINIO_REGION'] = os.environ.get('MINIO_REGION', None)
health = HealthCheck(app, "/healthz") health = HealthCheck()
# register error handlers # register error handlers
@ -53,6 +53,7 @@ for view in [ObjectView]:
view.register(app, trailing_slash=False) view.register(app, trailing_slash=False)
health.add_check(health_database_status) health.add_check(health_database_status)
app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run())
# start debugging if needed # start debugging if needed
if __name__ == "__main__": if __name__ == "__main__":