Feat/#60#61
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
💡 개선 사항
|
|
아 이거 어제 준우님꺼 확인해본다고 준우님꺼 커밋 pull 받았다가 꼬인것 같은데 merge conflict 안나니까 그냥 PR 해도 될 것 같은데.. 어떻게 생각하시나요? |
| .onStatus(HttpStatusCode::isError, (httpRequest, httpResponse) -> { | ||
| throw new AiServerException(AiErrorCode.AI_SERVER_ERROR); |
There was a problem hiding this comment.
AI 성공 후 complete() 커밋 전에 끊기면 pendingRequestId가 안 지워져, 재시도가 같은 requestId로 재전송합니다. 이때 AI가 중복을 409로 반환하면 onStatus(isError)가 이를 실패로 처리해 다시 재시도 → 무한루프에 빠질 수 있습니다.
문서엔 중복 방지(멱등성)가 적혀 있는데, 중복 requestId에 200+원래 답장을 주는지 409를 주는지가 없어서요. AI 서버 응답 스펙 확인 부탁드립니다. 409면 케이스 분기가 필요할 거 같습니다.
🛡️ 문제점
💡 개선 사항
|
Summary
Related Issue
Describe your code
작업 내용 (What I Did) : 구현한 기능의 요약 설명 작성
선제 연락 스케줄 엔티티
캐릭터 생성·수정 연동
스케줄 Worker
AI 서버 연동
Swagger 테스트 API (로컬에서만)
기존 데이터 backfill
스크린샷/결과 (Optional) : API 테스트 결과 첨부
논의사항/질문 (To Reviewers) : 리뷰어들이 집중해서 봐주었으면 하는 부분 기술
Checklist