From d8bc3c85954ee3c96965fcb602d915bd2223b2be Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 28 Apr 2025 17:59:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E6=97=B6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index c391a3b..041dae7 100644 --- a/app.py +++ b/app.py @@ -16,6 +16,14 @@ LOGGER = logging.getLogger(__name__) init_opentelemetry(batch=False) app = flask.Flask(__name__) +@app.get('/health/check') +def health_check(): + return api.sync_center() + +@app.post('/') +def do_nothing(): + return "NOOP" + @app.post('/') def do_task(task_id): task_info = api.get_task_info(task_id)