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: