fix monitor config key error when args_check is False

pull/362/head
JiaoPL 2023-09-25 14:16:53 +08:00
parent 64d4159f89
commit 0565e17b8d
1 changed files with 8 additions and 7 deletions

View File

@ -468,6 +468,7 @@ def initialize_distributed_env(
args_sanity_check()
# init light monitor client
if gpc.config.get("monitor") and gpc.config.monitor.get("alert"):
alert_config = gpc.config.monitor.alert
if alert_config.enable_feishu_alert and gpc.is_rank_for_log():
light_monitor_address = alert_config.light_monitor_address