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:15:11 +01:00
parent c67bcc8db1
commit a7994d704d

View File

@ -48,7 +48,7 @@ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
# initialize stuff
db.init_app(app)
storage.init_app(app)
health = HealthCheck(app, "/healthz")
health = HealthCheck()
@app.before_first_request
@ -64,6 +64,7 @@ for view in [SVMView, CNNView, RootView]:
view.register(app, trailing_slash=False, route_prefix='/model')
health.add_check(health_database_status)
app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run())
# start debuggig if needed
if __name__ == "__main__":