Browse Source

判断content_id是否在执行

罗俊辉 6 months ago
parent
commit
6a0755333b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tasks/newContentIdTask.py

+ 1 - 1
tasks/newContentIdTask.py

@@ -194,7 +194,7 @@ class NewContentIdTask(object):
         if result:
             for item in result:
                 content_status = item[0]
-                if content_status != self.TASK_INIT_STATUS:
+                if content_status not in {self.TASK_INIT_STATUS, self.TASK_PUBLISHED_STATUS} :
                     return True
             return False
         else: