[FEATURE] 저장 링크 주간 재검사 스케줄러 추가#61
Open
sunm2n wants to merge 1 commit into
Open
Conversation
- 저장 링크가 참조하는 Analysis를 매주 FastAPI로 재검사하는 스케줄러 추가 - 마지막 검사 후 N일(기본 7일) 지난 대상만 keyset 페이지네이션으로 조회 - 지난 재검사 실패(FAILED) 건도 포함해 다음 주기에 재시도 - 재검사 시 Analysis를 QUEUED로 리셋·requestId 재발급·오류 필드 초기화 후 기존 AnalysisAsyncRunner로 위임 - 재검사 성공 콜백 시 기존 AnalysisReason 삭제 후 재저장하여 중복 누적 방지 - link.recheck cron/stale-days 설정 추가 - 재검사 서비스/디스패처/스케줄러 단위 테스트 및 findStaleSavedAnalyses 통합 테스트 추가 IssueNum #45
3 tasks
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.
개요
저장한 링크가 시간이 지나 위험해질 수 있어, 매주 저장 링크를 FastAPI 분석 엔진으로 재검사하는 스케줄러를 추가합니다. (Issue #45)
작업 내용
Analysis를 매주 재검사하는SavedLinkRecheckScheduler/Service/Dispatcher추가 (기본 매주 월 04:00)findStaleSavedAnalyses로 조회 —last_checked_at없으면analyzed_at폴백, keyset(cursor) 페이지네이션Analysis를 QUEUED로 리셋·requestId 재발급·오류 필드 초기화 후 기존AnalysisAsyncRunner로 위임 (콜백 수용 조건 충족)AnalysisReason삭제 후 재저장하여 중복 누적 방지link.recheckcron/stale-days 설정 추가비고
/api/v1/analyze) 및 DB 마이그레이션 변경 없음테스트
findStaleSavedAnalysesTestcontainers 통합 테스트