降低并行线程数
This commit is contained in:
@@ -110,7 +110,7 @@ def sync_by_city(city_now):
|
||||
log.info(f"{city_now}开始补充物业费....")
|
||||
sql = "select id, city, region, name, estate_charge, finish_building_date, location from community_summary where city='" + city_now + "' and (estate_charge is null or estate_charge_flag=1)"
|
||||
community_summary_df = es206_client.scan_by_sql_to_data_frame(sql)
|
||||
with ThreadPoolExecutor(max_workers=50) as pool:
|
||||
with ThreadPoolExecutor(max_workers=20) as pool:
|
||||
def deal(index, item):
|
||||
if index % 1000 == 0 and index > 0:
|
||||
log.info(f"已查找{index}")
|
||||
|
||||
Reference in New Issue
Block a user