Ver Fonte

定时任务加钉钉监控

ck há 4 anos atrás
pai
commit
71ae02dbee
1 ficheiros alterados com 8 adições e 7 exclusões
  1. 8 7
      app/etl/data_stat_run.py

+ 8 - 7
app/etl/data_stat_run.py

@@ -26,13 +26,14 @@ def do_cost(st,et):
 
 
 def main(st,et):
-    do_order(st,et)
-    do_cost(st,et)
-    dw_daily_channel()
-    dw_pitcher_trend()
-    dm_pitcher_daily_overview()
-
-
+    try:
+        do_order(st,et)
+        do_cost(st,et)
+        dw_daily_channel()
+        dw_pitcher_trend()
+        dm_pitcher_daily_overview()
+    except Exception as e:
+        DingTalkUtils.send("hourlyRun fail!! \n "+e,'18860455786')
 
 
 def hourly():