瀏覽代碼

add log to task

luojunhui 4 月之前
父節點
當前提交
25f1db7520
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      tasks/new_contentId_task.py

+ 14 - 0
tasks/new_contentId_task.py

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