03_rag: - companyx_grounding_pipeline.md: 코드 SSOT 섹션 추가, 진입 조건 3단계(IC→마커 폴백) 정확히 기술, 환경변수 참조로 IP 하드코딩 제거 - companyx_incremental_indexing_workflow.md: frontmatter 표준 적용 (type, last_updated) - rag_upload_indexing_pipeline.md: 코드 SSOT·재인덱싱·업로드 경로별 진입점 테이블 추가, 환경변수 참조 04_scheduler: - scheduled_daily_briefing.md: n8n cron 전제 제거, APScheduler DB 기반 + LangGraph 워크플로우 기준 재작성 - scheduled_healthcheck_alert.md: n8n cron 전제 제거, /health 엔드포인트 + SKILL.md registry 기반 재작성 - scheduled_rag_reindex_retry.md: 현행 코드에 해당 잡 없음 → _archive 이동 05_admin: - diary_reflection_pipeline.md: n8n 전제 제거, APScheduler + diary_generator.py 기준 재작성, /api/diary/generate(존재하지 않는 엔드포인트) 제거 Refs: DOCS#8 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)