|
@@ -26,7 +26,7 @@ def threadMonitor():
|
|
|
|
|
|
get_off_job = [line for line in output.splitlines() if 'python3 getOffVideosDaily.py' in line]
|
|
get_off_job = [line for line in output.splitlines() if 'python3 getOffVideosDaily.py' in line]
|
|
|
|
|
|
- migrate_source_id_job = [line for line in output.splitlines() if 'python3 migrateRootSourceId.py' in line]
|
|
+
|
|
|
|
|
|
updateAccountAvgDaily = [line for line in output.splitlines() if 'python3 updateAccountAvgDaily.py' in line]
|
|
updateAccountAvgDaily = [line for line in output.splitlines() if 'python3 updateAccountAvgDaily.py' in line]
|
|
|
|
|
|
@@ -45,15 +45,6 @@ def threadMonitor():
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
- if not migrate_source_id_job:
|
|
|
|
- bot(
|
|
|
|
- title="定时任务进程异常挂掉",
|
|
|
|
- detail={
|
|
|
|
- "Job": "migrate_source_id_job",
|
|
|
|
- "Time": datetime.datetime.now().__str__()
|
|
|
|
- }
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
if not updateAccountAvgDaily:
|
|
if not updateAccountAvgDaily:
|
|
bot(
|
|
bot(
|
|
title="定时任务进程异常挂掉",
|
|
title="定时任务进程异常挂掉",
|
|
@@ -95,6 +86,3 @@ if __name__ == '__main__':
|
|
while True:
|
|
while True:
|
|
threadMonitor()
|
|
threadMonitor()
|
|
time.sleep(60 * 10)
|
|
time.sleep(60 * 10)
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|