소스 검색

提升了消耗请求频次上限

ck 3 년 전
부모
커밋
b3b473b6f0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/api_data/tx_ad_cost/get_cost_older.py

+ 2 - 2
app/api_data/tx_ad_cost/get_cost_older.py

@@ -105,7 +105,7 @@ def get_daily_vx(st,et):
 	print("获取vx账号:",token_list_v.__len__())
 
 	time1 = time.time()
-	executor = ThreadPoolExecutor(max_workers=10)
+	executor = ThreadPoolExecutor(max_workers=20)
 	li=[]
 	for y in token_list_v:
 		executor.submit(get_v_data,y,li,st,et)
@@ -119,7 +119,7 @@ def get_daily_qq(st,et):
 	print("获取qq账号:",token_list_q.__len__())
 	time1 = time.time()
 	li=[]
-	executor = ThreadPoolExecutor(max_workers=5)
+	executor = ThreadPoolExecutor(max_workers=20)
 	for x in token_list_q:
 
 		executor.submit(get_q_data,x,li,st,et)