This commit is contained in:
xyj 2024-03-05 09:31:04 +08:00
parent 63b8545904
commit b8f06038fe
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import subprocess
def job():
subprocess.Popen(['supervisorctl reload'], shell=True)
subprocess.Popen(['supervisorctl restart push_stream'], shell=True)
# 每半小时执行一次
@ -14,4 +14,4 @@ try:
schedule.run_pending()
time.sleep(5)
except Exception as e:
subprocess.Popen(['supervisorctl reload'], shell=True)
subprocess.Popen(['supervisorctl restart push_stream'], shell=True)