Browse Source

增加flowpool 排序

luojunhui 5 months ago
parent
commit
9d92cd009d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tasks/history_task.py

+ 1 - 1
tasks/history_task.py

@@ -52,7 +52,7 @@ class historyContentIdTask(object):
                 group by content_id
             ) VID on ART.content_id = VID.content_id and VID.cnt >= 3
             WHERE ART.content_status = 0 and ART.process_times <= 3
-            ORDER BY 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)