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