liqian 3 years ago
parent
commit
d91fcac042
1 changed files with 2 additions and 1 deletions
  1. 2 1
      video_recall.py

+ 2 - 1
video_recall.py

@@ -289,7 +289,8 @@ class PoolRecall(object):
                     now_m = datetime.now().minute
                     feishu_text = '{} —— appType = {}, h = {} 数据未按时更新,请及时查看解决。'.format(
                         config_.ENV_TEXT, self.app_type, h)
-                    if now_m > config_.ROV_UPDATE_MINUTE_6:
+                    if now_m > config_.ROV_UPDATE_MINUTE_6 and h > 0:
+                        # h=0时,因数据首次更新耗时长,不做报警
                         send_msg_to_feishu(feishu_text)
                     return key_name, redis_h
                 # 其他