|
@@ -86,13 +86,13 @@ class DataProcessor(object):
|
|
|
select_sql = "SELECT video_id, hour_dt_str FROM lightgbm_data;"
|
|
|
init_data_tuple = self.client_spider.select(select_sql)
|
|
|
init_list = list(init_data_tuple)
|
|
|
- with ThreadPoolExecutor(max_workers=4) as Pool:
|
|
|
- Pool.map(process_info, init_list)
|
|
|
- # for item in tqdm(init_list):
|
|
|
- # try:
|
|
|
- # process_info(item)
|
|
|
- # except Exception as e:
|
|
|
- # print("操作失败", e)
|
|
|
+ # with ThreadPoolExecutor(max_workers=4) as Pool:
|
|
|
+ # Pool.map(process_info, init_list)
|
|
|
+ for item in tqdm(init_list):
|
|
|
+ try:
|
|
|
+ process_info(item)
|
|
|
+ except Exception as e:
|
|
|
+ print("操作失败", e)
|
|
|
|
|
|
def update_user_info(self, start_date, end_date):
|
|
|
"""
|