健康检查时同步信息

This commit is contained in:
Jerry Yan 2025-04-28 17:59:44 +08:00
parent 5d58198b7e
commit d8bc3c8595

8
app.py
View File

@ -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('/<task_id>')
def do_task(task_id):
task_info = api.get_task_info(task_id)