From b5e910e0db7dfe4e95d575ce6945dc2d6c9eeaf9 Mon Sep 17 00:00:00 2001 From: xyj <1090822794@qq.com> Date: Tue, 5 Mar 2024 09:57:41 +0800 Subject: [PATCH] update --- forever.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forever.py b/forever.py index 71bdce8..e2f8aaa 100644 --- a/forever.py +++ b/forever.py @@ -8,11 +8,12 @@ def job(): + # 每半小时执行一次 -schedule.every(10).minutes.do(job) +schedule.every(5).minutes.do(job) try: while True: schedule.run_pending() time.sleep(5) except Exception as e: - subprocess.Popen(['supervisorctl restart push_stream'], shell=True) + subprocess.Popen(['supervisorctl reload'], shell=True)