Skip to content

[Fix] RAG 작업 claim에 lease와 소유권 토큰 적용 - #515

Merged
Gimini-3 merged 5 commits into
developfrom
fix/rag-claim-lease
Oct 15, 2026
Merged

Gimini-3 merged 5 commits into
developfrom
fix/rag-claim-lease

Conversation

@Gimini-3

Copy link
Copy Markdown
Contributor

변경 내용

  • RAG 작업 선점에 인스턴스 소유자, 매 선점마다 새 토큰, 20초 lease를 추가했습니다.
  • 5초 heartbeat가 실행 중인 작업의 lease를 연장합니다.
  • 앱 기동 시 전체 claim 해제를 제거하고, 미선점 또는 만료 작업만 FOR UPDATE SKIP LOCKED로 재선점합니다.
  • 성공·실패 완료 UPDATE에 현재 token과 살아 있는 lease 조건을 추가했습니다. 전역 90초 타임아웃 스위퍼는 기존 상태 조건을 유지합니다.
  • 실제 PostgreSQL의 선점·만료·토큰 경쟁 및 Worker DB 완료 시험 기록을 추가했습니다.

검증

  • RAG 관련 단위·DB 통합 49개 통과, 실패 0개.
  • Worker DB 완료 통합 1개 통과.
  • 실제 A/B JVM 기동·중단 재시험은 별도 시험 PR로 기록합니다.

보장 범위

외부 모델 호출 자체는 앱 중단 직후 재시도될 수 있습니다. 현재 소유권을 가진 작업자만 최종 답변·인용을 확정하도록 제한합니다.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: DocGrid/docgrid/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 60074d9d-a147-4d5c-8d91-9bf898814531
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Gimini-3
Gimini-3 merged commit 4bd434d into develop Oct 15, 2026
3 checks passed
@Gimini-3
Gimini-3 deleted the fix/rag-claim-lease branch October 15, 2026 21:09
@Gimini-3 Gimini-3 self-assigned this Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant