This commit is contained in:
DingZQ
2023-10-21 08:50:45 +08:00
parent 6bb046e1ca
commit 540d726c11

View File

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