fix(agent-office): 코드 리뷰 Critical/Important 이슈 수정
- REST 404 응답을 HTTPException으로 변경 (tuple 반환 버그) - MusicAgent 폴링을 asyncio.create_task로 비동기화 (이벤트 루프 블로킹 해소) - WebSocket JSON 파싱 에러 핸들링 추가 - StockAgent add_alert 파라미터 검증 추가 - 미사용 의존성 제거 (requests, python-telegram-bot) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,9 @@ class MusicAgent(BaseAgent):
|
||||
|
||||
approve_task(task_id, via="telegram")
|
||||
await self.transition("working", "작곡 중...", task_id)
|
||||
asyncio.create_task(self._poll_composition(task_id, task))
|
||||
|
||||
async def _poll_composition(self, task_id: str, task: dict) -> None:
|
||||
try:
|
||||
input_data = task["input_data"]
|
||||
payload = {
|
||||
|
||||
Reference in New Issue
Block a user