Renamed stuff
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2021-12-10 23:08:58 +01:00
parent 3b5621278f
commit 2f5a4929a5
15 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
from healthcheck import HealthCheck
from flask import Flask
def health_database_status():
return True, f'db is ok'
def register_health_checks(app: Flask):
health = HealthCheck()
health.add_check(health_database_status)
app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run())