You've already forked FrameTour-RenderWorker
app不使用批量上报
This commit is contained in:
3
app.py
3
app.py
@ -12,14 +12,13 @@ load_local_template()
|
||||
import logging
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
init_opentelemetry()
|
||||
init_opentelemetry(batch=False)
|
||||
app = flask.Flask(__name__)
|
||||
|
||||
@app.post('/<task_id>')
|
||||
def do_task(task_id):
|
||||
task_info = api.get_task_info(task_id)
|
||||
biz.task.start_task(task_info)
|
||||
time.sleep(1) # for telemetry upload traces
|
||||
return "OK"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user