|
@@ -168,17 +168,23 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
|
|
|
@Override
|
|
@Override
|
|
|
public void matchCrawlerVideo() throws InterruptedException {
|
|
public void matchCrawlerVideo() throws InterruptedException {
|
|
|
List<NewMatchVideo> videos = queryMatchVideosByStatus(NewContentStatusEnum.KIMI_SUCCESS);
|
|
List<NewMatchVideo> videos = queryMatchVideosByStatus(NewContentStatusEnum.KIMI_SUCCESS);
|
|
|
- processVideosInParallel(videos,
|
|
|
|
|
- this::processCrawlerMatchContent,
|
|
|
|
|
- newMatchCrawlerVideoPoolExecutor);
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(videos)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ for (NewMatchVideo video : videos) {
|
|
|
|
|
+ processCrawlerMatchContent(video);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void uploadCrawlerVideo() throws InterruptedException {
|
|
public void uploadCrawlerVideo() throws InterruptedException {
|
|
|
List<NewMatchVideo> videos = queryMatchVideosByStatus(NewContentStatusEnum.CRAWLER_SUCCESS);
|
|
List<NewMatchVideo> videos = queryMatchVideosByStatus(NewContentStatusEnum.CRAWLER_SUCCESS);
|
|
|
- processVideosInParallel(videos,
|
|
|
|
|
- this::processUploadCrawlerVideo,
|
|
|
|
|
- newUploadCrawlerVideoPoolExecutor);
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(videos)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ for (NewMatchVideo video : videos) {
|
|
|
|
|
+ processUploadCrawlerVideo(video);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void processKimiMatchContent(NewMatchVideo newMatchVideo) {
|
|
private void processKimiMatchContent(NewMatchVideo newMatchVideo) {
|