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

View File

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