Download:
child 341:0d7987defa1a
parent 339:641a6a8ee1b6
340:2d97d5a9d437
Anton Shestakov <av6@dwimlabs.net>, Wed, 30 May 2018 18:26:26 +0800
requirements: Tornado 5.0.2

3 файлов изменено, 4 вставок(+), 4 удалений(-) [+]
hooks-queue.py file | annotate | diff | comparison | revisions
poller-queue.py file | annotate | diff | comparison | revisions
requirements.txt file | annotate | diff | comparison | revisions
--- a/hooks-queue.py Wed May 30 18:20:33 2018 +0800
+++ b/hooks-queue.py Wed May 30 18:26:26 2018 +0800
@@ -151,7 +151,7 @@
application = CandolintHooks(rconn, args.debug)
application.listen(options.port, options.listen, xheaders=options.xheaders)
- IOLoop.instance().start()
+ IOLoop.current().start()
if __name__ == '__main__':
--- a/poller-queue.py Wed May 30 18:20:33 2018 +0800
+++ b/poller-queue.py Wed May 30 18:26:26 2018 +0800
@@ -35,7 +35,7 @@
self.rconn = rconn
self.targets = targets
self.interval = interval
- IOLoop.instance().add_callback(self.setup)
+ IOLoop.current().add_callback(self.setup)
@coroutine
def setup(self):
@@ -167,7 +167,7 @@
CandolintPoller(rconn, targets, interval, args.debug)
- IOLoop.instance().start()
+ IOLoop.current().start()
if __name__ == '__main__':
--- a/requirements.txt Wed May 30 18:20:33 2018 +0800
+++ b/requirements.txt Wed May 30 18:26:26 2018 +0800
@@ -1,4 +1,4 @@
peewee==3.5.0
PyYAML==3.12
redis==2.10.6
-tornado==4.5.3
+tornado==5.0.2