多线程问题排查
This commit is contained in:
@@ -118,7 +118,6 @@ def sync(city=None):
|
|||||||
seaweed_df = seaweed_df[seaweed_df['city'] == city].copy()
|
seaweed_df = seaweed_df[seaweed_df['city'] == city].copy()
|
||||||
seaweed_df = seaweed_df.reset_index(drop=True)
|
seaweed_df = seaweed_df.reset_index(drop=True)
|
||||||
|
|
||||||
i
|
|
||||||
with ThreadPoolExecutor(max_workers=30) as pool:
|
with ThreadPoolExecutor(max_workers=30) as pool:
|
||||||
for index, item in seaweed_df.iterrows():
|
for index, item in seaweed_df.iterrows():
|
||||||
pool.submit(find_around_price_item, seaweed_df, index, item)
|
pool.submit(find_around_price_item, seaweed_df, index, item)
|
||||||
|
|||||||
Reference in New Issue
Block a user