update
This commit is contained in:
parent
1277fcc9f8
commit
b5e910e0db
|
@ -8,11 +8,12 @@ def job():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 每半小时执行一次
|
# 每半小时执行一次
|
||||||
schedule.every(10).minutes.do(job)
|
schedule.every(5).minutes.do(job)
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
schedule.run_pending()
|
schedule.run_pending()
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
subprocess.Popen(['supervisorctl restart push_stream'], shell=True)
|
subprocess.Popen(['supervisorctl reload'], shell=True)
|
||||||
|
|
Loading…
Reference in New Issue