fix(workers): 보류 분류에 라우터 502/504 추가 — upstream 절단이 라우터 경유에선 502 로 표면화

llm_router.py 실측: upstream 연결 실패/생성 중 절단 = HTTPException 502 (4곳).
맥북 sleep 절단의 실제 표면이라 503 단독 분류는 보류 누락 → 502/503/504 로 확장.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hyungi
2026-06-11 13:00:55 +09:00
parent 88e5893041
commit e7c7a2091f
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -36,9 +36,11 @@ def _http_status_error(status: int) -> httpx.HTTPStatusError:
@pytest.mark.parametrize("exc", [
_http_status_error(503), # 라우터 upstream_cold/editor_busy/warming
httpx.ConnectError("connection refused"), # 맥북 sleep — 연결 자체 불가
_http_status_error(502), # 라우터: upstream 연결 실패/생성 중 절단 변환
_http_status_error(504),
httpx.ConnectError("connection refused"), # 라우터 자체 불가
httpx.ConnectTimeout("connect timeout"),
httpx.ReadTimeout("read timeout"), # 생성 도중 sleep 절단
httpx.ReadTimeout("read timeout"), # DS↔라우터 구간 절단
httpx.ReadError("connection reset"),
httpx.RemoteProtocolError("server disconnected"),
])