Browse Source

2024-07-01
修改并发数
爬虫处理数量:-6
缓存处理数量:40

罗俊辉 11 months ago
parent
commit
3d824cb21f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      applications/deal/get_done_content_deal.py
  2. 1 1
      applications/deal/process_deal.py

+ 1 - 1
applications/deal/get_done_content_deal.py

@@ -30,7 +30,7 @@ class ProcessDeal2(object):
             WHERE content_status = 0 and process_times <= 5
             WHERE content_status = 0 and process_times <= 5
             ORDER BY request_time_stamp
             ORDER BY request_time_stamp
             ASC
             ASC
-            LIMIT 60;
+            LIMIT 40;
         """
         """
         task_list = await self.mysql_client.async_select(sql=select_sql)
         task_list = await self.mysql_client.async_select(sql=select_sql)
         task_obj_list = [
         task_obj_list = [

+ 1 - 1
applications/deal/process_deal.py

@@ -30,7 +30,7 @@ class ProcessDeal(object):
             WHERE content_status = 0 and process_times <= 5
             WHERE content_status = 0 and process_times <= 5
             ORDER BY request_time_stamp
             ORDER BY request_time_stamp
             ASC
             ASC
-            LIMIT 4;
+            LIMIT 6;
         """
         """
         content_ids = await self.mysql_client.async_select(select_sql1)
         content_ids = await self.mysql_client.async_select(select_sql1)
         cil = []
         cil = []