From 3801ddcc70b38f7e39befd46be64b7ef6cdf6fdd Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Thu, 11 May 2023 09:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/community/relative_price_ranking.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dags/business/business/community/relative_price_ranking.py b/dags/business/business/community/relative_price_ranking.py index 4638f91..672e682 100644 --- a/dags/business/business/community/relative_price_ranking.py +++ b/dags/business/business/community/relative_price_ranking.py @@ -142,12 +142,12 @@ def sync(city=None): seaweed_list = list() seaweed_df.apply(lambda x: seaweed_list.append(dict(x)), axis=1) - # with ThreadPoolExecutor(max_workers=30) as pool: - # for seaweed in seaweed_list: - # pool.submit(find_around_price_item, seaweed) + with ThreadPoolExecutor(max_workers=30) as pool: + for seaweed in seaweed_list: + pool.submit(find_around_price_item, seaweed) - for seaweed in seaweed_list: - find_around_price_item(seaweed) + # for seaweed in seaweed_list: + # find_around_price_item(seaweed) if len(actions) > 0: helpers.bulk(es206_client.elastic_client, actions)