- further healthz improvements
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from flask import Blueprint, current_app, request, jsonify
|
||||
from flask_healthz import HealthError
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
from celery.exceptions import TimeoutError as CeleryTimeoutError
|
||||
from prometheus_client import Counter, Histogram, generate_latest, CONTENT_TYPE_LATEST
|
||||
@@ -20,7 +19,7 @@ def liveness():
|
||||
# Basic check to see if the app is running
|
||||
return True
|
||||
except Exception:
|
||||
raise HealthError("Liveness check failed")
|
||||
raise Exception("Liveness check failed")
|
||||
|
||||
|
||||
def readiness():
|
||||
@@ -32,7 +31,7 @@ def readiness():
|
||||
}
|
||||
|
||||
if not all(checks.values()):
|
||||
raise HealthError("Readiness check failed")
|
||||
raise Exception("Readiness check failed")
|
||||
|
||||
|
||||
def check_database():
|
||||
|
||||
Reference in New Issue
Block a user