This commit is contained in:
wangwei01 2019-07-30 20:39:52 +08:00
parent 1d7e6b1310
commit e6c845004a

View File

@ -252,12 +252,12 @@ if __name__ == "__main__":
app = make_app()
app.listen(conf['listen_port'])
conf['rushtime'] = 10
conf['rushtime'] = 300
tornado.ioloop.IOLoop.current().call_later(conf['rushtime'],
lambda : readMysqlData(conf['rushtime'])
)
conf['rushtime'] = 15
conf['rushtime'] = 3600 * 17
tornado.ioloop.IOLoop.current().call_later(getDaySeconds(time.time(), 1) + conf['rushtime'],
lambda : dayReadMysqlData(conf['rushtime'])
)