Parcourir la source

新增-rematch task

luojunhui il y a 5 mois
Parent
commit
712b9d35bc
1 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 4 5
      applications/const/task_const.py

+ 4 - 5
applications/const/task_const.py

@@ -19,7 +19,10 @@ class HistoryContentIdTaskConst:
     EXIT_STATUS = 97
     # 文章品类不匹配
     MISMATCH_STATUS = 96
-    # 视频已经下载成功状态
+
+    # 视频下载状态
+    VIDEO_DOWNLOAD_INIT_STATUS = 0
+    VIDEO_DOWNLOAD_FAIL_STATUS = 3
     VIDEO_DOWNLOAD_SUCCESS_STATUS = 2
     # 任务最多处理次数
     TASK_MAX_PROCESS_TIMES = 3
@@ -72,10 +75,6 @@ class NewContentIdTaskConst(HistoryContentIdTaskConst):
     KIMI_SUCCESS_STATUS = 1
     KIMI_FAIL_STATUS = 2
 
-    # 视频下载失败状态
-    VIDEO_DOWNLOAD_INIT_STATUS = 0
-    VIDEO_DOWNLOAD_FAIL_STATUS = 3
-
 
 class RematchTaskConst(NewContentIdTaskConst):
     """