This commit is contained in:
xyj 2024-03-02 11:12:38 +08:00
parent f4eacbd4e3
commit 8aa738e44b
1 changed files with 2 additions and 2 deletions

View File

@ -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)