소스 검색

增加flowpool 排序

luojunhui 6 달 전
부모
커밋
9d92cd009d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)