Browse Source

Merge branch '2024-12-06-remove-orderby' of Server/title_with_video into 2024-09-23newDbTasks

luojunhui 4 months ago
parent
commit
003995a8b2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      applications/config/const.py
  2. 1 1
      tasks/history_task.py

+ 1 - 1
applications/config/const.py

@@ -38,7 +38,7 @@ class HistoryContentIdTaskConst:
 
     # 等待时间
     NEED_PUBLISH_WAIT_TIME = 60
-    DO_NOT_NEED_PUBLISH_WAIT_TIME = 10
+    DO_NOT_NEED_PUBLISH_WAIT_TIME = 3
 
 
 class NewContentIdTaskConst(HistoryContentIdTaskConst):

+ 1 - 1
tasks/history_task.py

@@ -56,7 +56,7 @@ class historyContentIdTask(object):
             ) VID on ART.content_id = VID.content_id and VID.cnt >= 3
             WHERE ART.content_status = {self.const.TASK_INIT_STATUS} and ART.process_times <= {self.const.TASK_MAX_PROCESS_TIMES}
                 AND ART.publish_flag = {self.publish_flag}
-            ORDER BY ART.flow_pool_level, ART.request_timestamp
+            -- ORDER BY ART.flow_pool_level, ART.request_timestamp
             LIMIT {self.history_coroutines};
         """
         tasks = await self.mysql_client.async_select(sql=select_sql1)