健康检查时同步信息
This commit is contained in:
parent
5d58198b7e
commit
d8bc3c8595
8
app.py
8
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('/<task_id>')
|
||||
def do_task(task_id):
|
||||
task_info = api.get_task_info(task_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user