Commit db8b7d8c authored by IRON xiang's avatar IRON xiang
Browse files

添加时间区间判定函数 should_script_run

parent 3aa5bb1b
......@@ -175,7 +175,7 @@ while True:
# zmail.show(mail)
LOG.info('sleep 1800s')
t = 1800 + random.random() * 500
# t = 1800 + random.random() * 500
# t = 20
time.sleep(t) # 每5分钟检查一次
if not should_script_run():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment