Added more error handling and reporting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-26 17:01:10 +02:00
parent ba69b9c2b1
commit a844a13608
4 changed files with 50 additions and 4 deletions

View File

@ -17,6 +17,7 @@ import atexit
from apscheduler.schedulers.background import BackgroundScheduler
from magic_ampq import magic_ampq
from error_handlers import register_all_error_handlers
"""
Main Flask RESTful API
@ -72,5 +73,7 @@ api.add_resource(SampleParameterResource, '/sample/<tag>')
health.add_check(health_database_status)
health.add_check(ampq_connection_status)
register_all_error_handlers(app)
app.add_url_rule("/healthz", "healthcheck", view_func=lambda: health.run())