How to send a progress of operation in a FastAPI app?
问题 I have deployed a fastapi endpoint, from fastapi import FastAPI, UploadFile from typing import List app = FastAPI() @app.post('/work/test') async def testing(files: List(UploadFile)): for i in files: ....... # do a lot of operations on each file # after than I am just writing that processed data into mysql database # cur.execute(...) # cur.commit() ....... # just returning "OK" to confirm data is written into mysql return {"response" : "OK"} I can request output from the API endpoint and its