mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update task.py
This commit is contained in:
@@ -354,15 +354,21 @@ def systemTask():
|
||||
reloadNum += 1
|
||||
if reloadNum > 1440:
|
||||
reloadNum = 0
|
||||
mw.writeFile('log/sys_interrupt.pl',
|
||||
"reload num:" + str(reloadNum))
|
||||
restartMw()
|
||||
except Exception as ex:
|
||||
print(str(ex))
|
||||
mw.writeFile('log/sys_interrupt.pl', str(ex))
|
||||
|
||||
del(tmp)
|
||||
time.sleep(5)
|
||||
count += 1
|
||||
except Exception as ex:
|
||||
print(str(ex))
|
||||
mw.writeFile('log/sys_interrupt.pl', str(ex))
|
||||
|
||||
restartMw()
|
||||
import time
|
||||
time.sleep(30)
|
||||
systemTask()
|
||||
|
||||
Reference in New Issue
Block a user