SSOT 원칙(JSON 먼저, MD 함께): 모든 워크플로우 JSON에 대응하는 MD 보조 문서 작성. 260319 rb8001 변경 영향 반영: - companyx_grounding_pipeline: skip_default_prompt로 영향 없음 (notes 추가) - diary_reflection_pipeline: prompt DB v3 + neutral 생략 적용됨 (notes 추가) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
956 B
956 B
scheduled_rag_reindex_retry 워크플로우
목적
6시간마다 RAG 재인덱싱 실패 큐를 확인하고, pending 상태인 항목을 최대 20건까지 재시도한다.
흐름
Schedule Trigger (0 */6 * * *) → Load Retry Queue → Call Reindex API → Mark Done
주요 노드
| 노드 | 설명 |
|---|---|
| Schedule Trigger | cron 0 */6 * * * (6시간마다) |
| Load Retry Queue | PostgreSQL에서 rag_retry_queue pending 항목 최대 20건 조회 |
| Call Reindex API | POST :8508/api/reindex (timeout 120초, X-User-Id: system) |
| Mark Done | 성공 시 status = 'done', processed_at = NOW() 업데이트 |
엔드포인트
- 아웃바운드:
POST http://192.168.219.52:8508/api/reindex - DB: PostgreSQL
rag_retry_queue테이블 (SELECT, UPDATE)