Browse Source

add bot to daily tasks

luojunhui 6 months ago
parent
commit
8e3941ec47
1 changed files with 16 additions and 16 deletions
  1. 16 16
      threadAliveBot.py

+ 16 - 16
threadAliveBot.py

@@ -36,14 +36,14 @@ def threadMonitor():
 
 
     # checkVideoStatusDaily = [line for line in output.splitlines() if 'python3 checkVideoStatusDaily.py' in line]
     # checkVideoStatusDaily = [line for line in output.splitlines() if 'python3 checkVideoStatusDaily.py' in line]
 
 
-    if not get_off_job:
-        bot(
-            title="定时任务进程异常挂掉",
-            detail={
-                "Job": "GetOffVideosJob",
-                "Time": datetime.datetime.now().__str__()
-            }
-        )
+    # if not get_off_job:
+    #     bot(
+    #         title="定时任务进程异常挂掉",
+    #         detail={
+    #             "Job": "GetOffVideosJob",
+    #             "Time": datetime.datetime.now().__str__()
+    #         }
+    #     )
 
 
     # if not updateAccountAvgDaily:
     # if not updateAccountAvgDaily:
     #     bot(
     #     bot(
@@ -63,14 +63,14 @@ def threadMonitor():
             }
             }
         )
         )
 
 
-    if not updatePublishedMsgDaily:
-        bot(
-            title="定时任务进程异常挂掉",
-            detail={
-                "Job": "updatePublishedMsgDaily",
-                "Time": datetime.datetime.now().__str__()
-            }
-        )
+    # if not updatePublishedMsgDaily:
+    #     bot(
+    #         title="定时任务进程异常挂掉",
+    #         detail={
+    #             "Job": "updatePublishedMsgDaily",
+    #             "Time": datetime.datetime.now().__str__()
+    #         }
+    #     )
 
 
     # if not checkVideoStatusDaily:
     # if not checkVideoStatusDaily:
     #     bot(
     #     bot(