update
This commit is contained in:
parent
8aa738e44b
commit
b1523e81b6
|
@ -5,7 +5,6 @@ import subprocess
|
||||||
|
|
||||||
def job():
|
def job():
|
||||||
subprocess.Popen(['supervisorctl reload'], shell=True)
|
subprocess.Popen(['supervisorctl reload'], shell=True)
|
||||||
print("任务执行了!当前时间:", time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()))
|
|
||||||
|
|
||||||
|
|
||||||
# 每半小时执行一次
|
# 每半小时执行一次
|
||||||
|
@ -15,5 +14,4 @@ try:
|
||||||
schedule.run_pending()
|
schedule.run_pending()
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
|
||||||
subprocess.Popen(['supervisorctl reload'], shell=True)
|
subprocess.Popen(['supervisorctl reload'], shell=True)
|
||||||
|
|
Loading…
Reference in New Issue