Repository navigation
fix(characters): 생성 취소 시 일일 생성 횟수 환불 누락 수정 - #85
Merged
Merged
Conversation
취소 뷰가 status=FAILED 만 찍고 환불은 태스크 체크포인트에만 의존해, 워커 유실·폴링 직후 저장 구간 레이스·이미 종료된 잡 등에서 차감된 ImgGenLog 가 남아 생성 횟수가 잘못 올라가던 문제 수정. - CharacterGenerationJob 에 img_gen_log_id 추가(취소 뷰가 환불 대상 식별) - 취소 뷰: 잡 행 잠금(select_for_update) + ImgGenLog 즉시 삭제 - 태스크 성공 저장: 잡 잠금 후 상태 재확인 → 취소면 폐기·환불(레이스 차단) - 회귀 테스트: 취소→used 환불(0), 완료 잡 취소 409·횟수 유지
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Checklist
apps/,common/,config/,infrastructure/)config.settings.*Test
make testmake lintNotes