From 540d726c112866af8af57f41b0a9703d9d98bfb0 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 21 Oct 2023 08:50:45 +0800 Subject: [PATCH] Refine --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3e38de1..b6fe886 100644 --- a/main.py +++ b/main.py @@ -155,7 +155,7 @@ async def fastapi_run_project(network: str) -> str: raise HTTPException(status_code=400, detail="is in simulation") else: try: - app.state.lock.acquire() # Acquire the lock + await app.state.lock.acquire() # Acquire the lock result = run_project(network) return result except asyncio.CancelledError: