|
@@ -487,6 +487,13 @@ class NewContentIdTask(object):
|
|
|
)
|
|
|
)
|
|
|
downloaded_count += 1
|
|
|
+ if downloaded_count > 3:
|
|
|
+ await self.update_content_status(
|
|
|
+ ori_content_status=self.task_processing_status,
|
|
|
+ trace_id=trace_id,
|
|
|
+ new_content_status=etl_task_success_status
|
|
|
+ )
|
|
|
+ return True
|
|
|
except Exception as e:
|
|
|
update_sql = f"""
|
|
|
UPDATE {self.article_crawler_video_table}
|
|
@@ -532,7 +539,7 @@ class NewContentIdTask(object):
|
|
|
new_content_status=self.task_processing_status
|
|
|
)
|
|
|
try:
|
|
|
- download_videos = await self.get_video_list(content_id)
|
|
|
+ download_videos = await self.get_downloaded_videos(content_id)
|
|
|
match flow_pool_level:
|
|
|
case "autoArticlePoolLevel4":
|
|
|
# 冷启层, 全量做
|