mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-07 10:17:43 +02:00
[eric] agents: drop the unreachable 504 branch; the manager already swallows an aux timeout and returns a fallback group meta
This commit is contained in:
@@ -268,12 +268,6 @@ async def generate_group_meta(session_id: str, body: dict):
|
||||
if not future.done():
|
||||
future.set_result(result)
|
||||
return result
|
||||
except asyncio.TimeoutError as e:
|
||||
# A raw TimeoutError would bubble past the CORS layer as a headerless 500, which the
|
||||
# renderer console mislabels as a CORS violation; a 504 keeps the failure legible.
|
||||
if not future.done():
|
||||
future.set_exception(e)
|
||||
raise HTTPException(status_code=504, detail="metadata generation timed out") from e
|
||||
except Exception as e:
|
||||
if not future.done():
|
||||
future.set_exception(e)
|
||||
|
||||
Reference in New Issue
Block a user