From a9084fdd1da4bd0d679134990c947c07c338d4b4 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Mon, 28 Nov 2022 14:01:00 +0800 Subject: [PATCH] =?UTF-8?q?dag=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/estate_charge_complete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dags/business/business/community/estate_charge_complete.py b/dags/business/business/community/estate_charge_complete.py index a5a4f3e..51e2b8a 100644 --- a/dags/business/business/community/estate_charge_complete.py +++ b/dags/business/business/community/estate_charge_complete.py @@ -99,8 +99,8 @@ def sync_by_city(city_now): community_summary_df = es206_client.scan_by_sql_to_data_frame(sql) with ThreadPoolExecutor(max_workers=50) as pool: def deal(index, item): - if (index + 1) % 1000 == 0: - log.info(f"已补充{index}") + if index % 1000 == 0 and index > 0: + log.info(f"已查找{index}") if pd.notna(item['location']) and pd.notna(item['location']['lon']): location = [item['location']['lon'], item['location']['lat']] docs = find_nearest_by_location(city_now, location)