|
@@ -96,14 +96,12 @@ def timer_check():
|
|
|
update_user_group_to_redis(project=project, table=table, dt=dt, app_type_list=app_type_list,
|
|
|
features=features, ad_mid_group_key_params=ad_mid_group_key_params)
|
|
|
log_.info(f"user group data update end!")
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ send_msg_to_feishu(
|
|
|
+ webhook=config_.FEISHU_ROBOT['ad_user_group_update_robot'].get('webhook'),
|
|
|
+ key_word=config_.FEISHU_ROBOT['ad_user_group_update_robot'].get('key_word'),
|
|
|
+ msg_text=f"\nrov-offline{config_.ENV_TEXT} - 用户分组数据更新完成\n"
|
|
|
+ )
|
|
|
+
|
|
|
else:
|
|
|
|
|
|
Timer(60, timer_check).start()
|
|
@@ -111,12 +109,14 @@ def timer_check():
|
|
|
except Exception as e:
|
|
|
log_.error(f"用户分组数据更新失败, exception: {e}, traceback: {traceback.format_exc()}")
|
|
|
send_msg_to_feishu(
|
|
|
- webhook=config_.FEISHU_ROBOT['server_robot'].get('webhook'),
|
|
|
- key_word=config_.FEISHU_ROBOT['server_robot'].get('key_word'),
|
|
|
- msg_text=f"rov-offline{config_.ENV_TEXT} - 用户分组数据更新失败\n"
|
|
|
+ webhook=config_.FEISHU_ROBOT['ad_user_group_update_robot'].get('webhook'),
|
|
|
+ key_word=config_.FEISHU_ROBOT['ad_user_group_update_robot'].get('key_word'),
|
|
|
+ msg_text=f"\nrov-offline{config_.ENV_TEXT} - 用户分组数据更新失败\n"
|
|
|
f"exception: {e}\n"
|
|
|
f"traceback: {traceback.format_exc()}"
|
|
|
)
|
|
|
+
|
|
|
+ Timer(1*60, timer_check).start()
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|