Skip to content

Commit 714ad6c

Browse files
committed
feat: add Docker health check endpoint and bump version to 6.5.11
1 parent d8f5bcd commit 714ad6c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/primary/web_server.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,18 @@ def reset_app_cycle(app_name):
921921
'error': f"Failed to reset cycle for {app_name}. The app may not be running."
922922
}), 500
923923

924+
# Docker health check endpoint
925+
@app.route('/ping', methods=['GET'])
926+
def health_check():
927+
"""
928+
Simple health check endpoint for Docker health checks.
929+
Returns a status OK response to indicate the application is running properly.
930+
This follows the pattern of other *arr applications.
931+
"""
932+
logger = get_logger("system")
933+
logger.debug("Health check endpoint accessed")
934+
return jsonify({"status": "OK"})
935+
924936
# Start the web server in debug or production mode
925937
def start_web_server():
926938
"""Start the web server in debug or production mode"""

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.10
1+
6.5.11

0 commit comments

Comments
 (0)