- further healthz improvements

This commit is contained in:
Josako
2025-09-07 14:45:47 +02:00
parent 362b2fe753
commit 575bfa259e
4 changed files with 35 additions and 28 deletions

View File

@@ -1,15 +1,15 @@
from flask import Blueprint, jsonify
healthz_bp = Blueprint('healthz', __name__)
healthz_bp = Blueprint('healthz', __name__, url_prefix='/healthz')
@healthz_bp.route('/healthz/ready')
@healthz_bp.route('/ready')
def ready():
"""
Health check endpoint for readiness probe
"""
return jsonify({"status": "ok"})
@healthz_bp.route('/healthz/live')
@healthz_bp.route('/live')
def live():
"""
Health check endpoint for liveness probe