Selaa lähdekoodia

feat:添加自动化供给监控

zhaohaipeng 1 kuukausi sitten
vanhempi
commit
ae7186abdd
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      monitor/automation_provide_job_monitor.py

+ 2 - 1
monitor/automation_provide_job_monitor.py

@@ -62,7 +62,7 @@ def main():
         crawler_mode_set.add(datum.get('crawlerMode'))
 
     for crawler_mode in crawler_mode_set:
-        title = f"{crawler_mode} 执行情况监控"
+        title = f"【自动化供给】日任务执行情况监控 -- {crawler_mode}"
         content = "| reason | videoIdCnt | crawlerPlanIdCnt |\n"
         content += "| --- | --- | --- |\n"
         for datum in resp.get_body().get('data'):
@@ -74,6 +74,7 @@ def main():
             content += f"| {reason} | {video_id_cnt} | {crawler_plan_id_cnt} |\n"
 
         send_feishu_card_msg(title, content)
+        break
 
 
 if __name__ == "__main__":