瀏覽代碼

修改定时任务

zhangyong 1 年之前
父節點
當前提交
9942fe6052
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      main.py
  2. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
main.py

@@ -18,7 +18,7 @@ def job_douyin_data():
 schedule.every().day.at("12:00").do(job_douyin_data)
 schedule.every().day.at("12:00").do(job_douyin_data)
 
 
 # 设置下午4点运行任务
 # 设置下午4点运行任务
-schedule.every().day.at("17:00").do(job_video_stitching)
+schedule.every().day.at("17:25").do(job_video_stitching)
 
 
 while True:
 while True:
     schedule.run_pending()
     schedule.run_pending()

+ 1 - 1
video_stitching/video_stitching.py

@@ -321,7 +321,7 @@ class VideoStitching():
                 except Exception as e:
                 except Exception as e:
                     Common.logger().warning(f"新拼接视频发送oss失败:{e}\n")
                     Common.logger().warning(f"新拼接视频发送oss失败:{e}\n")
                     continue
                     continue
-            if count >= 20:
+            if count >= 13:
                 break
                 break
 
 
     @classmethod
     @classmethod