-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] 영상 분석 파이프라인 견고화 및 미처리 영상 자동 분석 도입 #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
31db86b
feat: ProxyYoutubeClient 응답 상태 코드 기반 YouTube 자막 실패 명시적 분류 (#65)
toychip 547cf0d
feat: YoutubeTranscriptClient 분리 및 sentinel 영상 ping 으로 IP 차단 여부 판정 추가…
toychip e08c260
feat: webshare 프록시 라운드로빈 도입 및 sentinel 차단 판정 명확화 (#65)
toychip 547be43
chore: prod 프록시 설정을 username 단수에서 usernames 리스트로 교체 (#65)
toychip 5ab26ce
ci: YOUTUBE_PROXY_USERNAME → YOUTUBE_PROXY_USERNAMES 배포 설정 반영 (#65)
toychip 33e7fb5
feat: sentinel video id 고정 (#65)
toychip 39cde62
feat: COMPLETED 영상 분석 결과를 POST 응답에 인라인 반환하여 추가 폴링 제거 (#65)
toychip d1c70e2
feat: 영상 분석 큐 USER/BATCH 우선순위 도입 및 task.source 영속화 (#65)
toychip eefe2e7
feat: PENDING 재시도 및 부팅 재적재 시 task.source 보존하여 원래 priority 유지 (#65)
toychip 54203c9
test: USER/BATCH source 전달 및 통계 분류 비즈니스 시나리오 검증 추가 (#65)
toychip d8c239a
refactor: VideoAnalysisTask 의 YOUTUBE_VIDEO_BASE_URL 을 public const 로…
toychip bc12352
feat: youtube_video 에 있지만 분석된 적 없는 영상 조회 쿼리 추가 (#65)
toychip c872403
feat: 수집된 미처리 영상을 BATCH 우선순위로 자동 분석 enqueue 하는 스케줄러 도입 (#65)
toychip d0428ab
chore: 누락된 Source enum 신규 파일 및 USER/BATCH source 검증 테스트 추가 (#65)
toychip af1dc72
chore: 누락된 Source enum 신규 파일 및 USER/BATCH source 검증 테스트 추가 (#65)
toychip 6a26897
refactor: ktlintformat (#65)
toychip 338b879
fix: YouTubeVideoCachingAdapter 에 findUnanalyzedVideoIds 위임 구현 누락 추가 …
toychip 31e9595
refactor: ktlintformat (#65)
toychip f738855
fix: 프록시 요청 타임아웃을 자막 다운로드 + 프록시 RTT 감안해 60초로 완화 (#65)
toychip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
14 changes: 14 additions & 0 deletions
14
linktrip-application/src/main/kotlin/com/linktrip/application/domain/video/Source.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package com.linktrip.application.domain.video | ||
|
|
||
| /** | ||
| * 영상 분석 요청의 출처. 큐 우선순위 결정에 사용된다. | ||
| * | ||
| * priority 가 작을수록 먼저 dequeue 된다 (Java [java.util.PriorityQueue] 컨벤션). | ||
| */ | ||
| enum class Source(val priority: Int) { | ||
| /** 사용자 직접 요청 (POST /video/analyze 등). 항상 먼저 처리. */ | ||
| USER(0), | ||
|
|
||
| /** 시스템 배치/수집 (YouTube 정기 수집, stranded backfill 등). USER 가 비었을 때만 처리. */ | ||
| BATCH(10), | ||
| } |
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
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
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
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
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
6 changes: 5 additions & 1 deletion
6
...ip-application/src/main/kotlin/com/linktrip/application/port/input/VideoAnalyzeUseCase.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| package com.linktrip.application.port.input | ||
|
|
||
| import com.linktrip.application.domain.video.Source | ||
| import com.linktrip.application.domain.video.VideoAnalysisTask | ||
|
|
||
| interface VideoAnalyzeUseCase { | ||
| fun analyzeVideo(youtubeUrl: String): VideoAnalysisTask | ||
| fun analyzeVideo( | ||
| youtubeUrl: String, | ||
| source: Source, | ||
| ): VideoAnalysisTask | ||
| } |
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
2 changes: 2 additions & 0 deletions
2
...tion/src/main/kotlin/com/linktrip/application/port/output/queue/VideoAnalysisQueuePort.kt
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.