Kaynağa Gözat

Merge branch '2024-12-23-add-log-to-new-match-task' of Server/title_with_video into 2024-09-23newDbTasks

luojunhui 4 ay önce
ebeveyn
işleme
a685cef4fb
1 değiştirilmiş dosya ile 14 ekleme ve 0 silme
  1. 14 0
      tasks/new_contentId_task.py

+ 14 - 0
tasks/new_contentId_task.py

@@ -272,6 +272,13 @@ class NewContentIdTask(object):
                     info="多个进程抢占同一个任务的执行状态锁,抢占失败,return"
                     info="多个进程抢占同一个任务的执行状态锁,抢占失败,return"
                 )
                 )
                 return
                 return
+            logging(
+                code="8023",
+                function="kimi_task",
+                trace_id=trace_id,
+                info="从root_content_id获取结果",
+                data=params
+            )
             return kimi_result
             return kimi_result
 
 
         # 处理content_id
         # 处理content_id
@@ -368,6 +375,13 @@ class NewContentIdTask(object):
             )
             )
             if affected_rows == 0:
             if affected_rows == 0:
                 return
                 return
+            logging(
+                code="8024",
+                function="spider_task",
+                trace_id=trace_id,
+                info="从root_content_id获取结果",
+                data=params
+            )
             return True
             return True
 
 
         download_video_exist_flag = await whether_downloaded_videos_exists(
         download_video_exist_flag = await whether_downloaded_videos_exists(