- 레거시 .md 2건(slack_basic_dialogue, service_health_check)을 _archive/로 이동 - n8n .json 파일 18건을 _archive/로 이동 - README.md 전면 재작성: n8n 전제 제거, 현행 아키텍처(APScheduler DB + SKILL.md) 반영 - 구 IP(192.168.219.52)를 localhost로 교체 (infrastructure-ssot-principle 준수) Refs: DOCS#8 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
951 B
951 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://localhost:8508/api/reindex - DB: PostgreSQL
rag_retry_queue테이블 (SELECT, UPDATE)