ck 3 년 전
부모
커밋
7c1d743406
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/hourlyRun.py

+ 2 - 1
app/hourlyRun.py

@@ -23,7 +23,8 @@ if __name__ == '__main__':
     get_cost.hourly()  # 广告相关消耗数据
     dw_image_cost_day.hourly()
 
-    DingTalkUtils.send(f"小时任务耗时{int(time.time()-st)}秒",phone="18860455786")
+    if int(time.time()-st)>1500:
+        DingTalkUtils.send(f"小时任务耗时{int(time.time()-st)}秒",phone="18860455786")