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:
RafaelFFAumo
2025-06-30 04:40:23 -03:00
committed by GitHub
parent 40b1684c1e
commit cf8c063a69
5 changed files with 268 additions and 265 deletions

View File

@ -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)