فهرست منبع

等待时间修改为 1s
update minigram info 修改至 1:30 执行

罗俊辉 7 ماه پیش
والد
کامیت
bb4ae04537
6فایلهای تغییر یافته به همراه14 افزوده شده و 13 حذف شده
  1. 7 6
      getOffVideosDaily.py
  2. 1 1
      migrateRootSourceId.py
  3. 1 1
      updateAccountAvgDaily.py
  4. 1 1
      updateAccountV3.py
  5. 3 3
      updateMinigramInfoDaily.py
  6. 1 1
      updatePublishedMsgDaily.py

+ 7 - 6
getOffVideosDaily.py

@@ -230,6 +230,7 @@ def checkJob():
 
 
 if __name__ == '__main__':
+    getOffJob()
     schedule.every().day.at("09:30").do(Functions().job_with_thread, getOffJob)
 
     schedule.every().day.at("10:30").do(Functions().job_with_thread, checkJob)
@@ -240,9 +241,9 @@ if __name__ == '__main__':
 
     while True:
         schedule.run_pending()
-        time.sleep(0.5)
-        # log(
-        #     task="getOffVideos",
-        #     function="main",
-        #     message="自动下架视频任务正常执行"
-        # )
+        time.sleep(1)
+        log(
+            task="getOffVideos",
+            function="main",
+            message="自动下架视频任务正常执行"
+        )

+ 1 - 1
migrateRootSourceId.py

@@ -146,7 +146,7 @@ if __name__ == '__main__':
     schedule.every().day.at("01:00").do(Functions().job_with_thread, source_id_job)
     while True:
         schedule.run_pending()
-        time.sleep(0.5)
+        time.sleep(1)
         # log(
         #     task="migrateRootSourceId",
         #     function="main",

+ 1 - 1
updateAccountAvgDaily.py

@@ -294,7 +294,7 @@ if __name__ == "__main__":
 
     while True:
         schedule.run_pending()
-        time.sleep(0.5)
+        time.sleep(1)
         # log(
         #     task="updateAccountAvgDaily",
         #     function="main",

+ 1 - 1
updateAccountV3.py

@@ -124,4 +124,4 @@ if __name__ == '__main__':
 
     while True:
         schedule.run_pending()
-        time.sleep(0.5)
+        time.sleep(1)

+ 3 - 3
updateMinigramInfoDaily.py

@@ -324,14 +324,14 @@ def updateMinigramInfoJob():
 
 
 if __name__ == '__main__':
-
-    schedule.every().day.at("01:00").do(Functions().job_with_thread, updateArticlesJob)
+    updateMinigramInfoJob()
+    schedule.every().day.at("01:30").do(Functions().job_with_thread, updateArticlesJob)
 
     schedule.every().day.at("03:30").do(Functions().job_with_thread, updateMinigramInfoJob)
 
     while True:
         schedule.run_pending()
-        time.sleep(0.5)
+        time.sleep(1)
         # log(
         #     task="updateMinigramInfoDaily",
         #     function="main",

+ 1 - 1
updatePublishedMsgDaily.py

@@ -373,7 +373,7 @@ if __name__ == '__main__':
 
     while True:
         schedule.run_pending()
-        time.sleep(0.5)
+        time.sleep(1)
         log(
             task="updatePublishedMsgDaily",
             function="main",