mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Adding semaphore usage on the '/run' endpoint (#8526)
### What problem does this PR solve? Switching threading.Lock() to asyncio.Lock(), since threading.Lock() is blocking. ### Type of change - [x] Performance Improvement
This commit is contained in:
@ -20,4 +20,4 @@ from api.handlers import healthz_handler, run_code_handler
|
||||
router = APIRouter()
|
||||
|
||||
router.get("/healthz")(healthz_handler)
|
||||
router.post("/run")(run_code_handler)
|
||||
router.post("/run")(run_code_handler)
|
||||
Reference in New Issue
Block a user