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)