From 6ce1606b51ef2fad7dc94507bbe27032c437e8dc Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Tue, 7 Mar 2023 14:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B6=E5=8F=91=E6=95=B0=E9=99=8D=E4=BD=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/avg_cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/business/business/community/avg_cost.py b/dags/business/business/community/avg_cost.py index 66c19b3..52a376d 100644 --- a/dags/business/business/community/avg_cost.py +++ b/dags/business/business/community/avg_cost.py @@ -139,7 +139,7 @@ def sync(city=None): seaweed_df.loc[index, 'avg_cost'] = price else: seaweed_df.loc[index, 'avg_cost'] = None - with ThreadPoolExecutor(max_workers=80) as pool: + with ThreadPoolExecutor(max_workers=30) as pool: for index, item in seaweed_df.iterrows(): pool.submit(find_around_price_item, index, item) # for index, item in seaweed_df.iterrows():