[wsgi] Drop calls to repo.start_looping_tasks
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 06 Mar 2017 13:15:51 +0100
changeset 12001 89611a994572
parent 12000 1b9fd8bda1cd
child 12002 26453d9467f6
[wsgi] Drop calls to repo.start_looping_tasks It's unlikely that these implementations were ever used so we do not bother with deprecation or a warning. We just drop the call to this method which should not be called from within a WSGI application. Related to #17057223.
cubicweb/wsgi/server.py
cubicweb/wsgi/tnd.py
cubicweb/wsgi/wz.py
--- a/cubicweb/wsgi/server.py	Mon Mar 06 15:16:53 2017 +0100
+++ b/cubicweb/wsgi/server.py	Mon Mar 06 13:15:51 2017 +0100
@@ -39,7 +39,6 @@
     httpd.set_app(app)
     repo = app.appli.repo
     try:
-        repo.start_looping_tasks()
         LOGGER.info('starting http server on %s', config['base-url'])
         httpd.serve_forever()
     finally:
--- a/cubicweb/wsgi/tnd.py	Mon Mar 06 15:16:53 2017 +0100
+++ b/cubicweb/wsgi/tnd.py	Mon Mar 06 13:15:51 2017 +0100
@@ -40,7 +40,6 @@
     http_server.listen(port, interface)
     repo = app.appli.repo
     try:
-        repo.start_looping_tasks()
         LOGGER.info('starting http server on %s', config['base-url'])
         ioloop.IOLoop.instance().start()
     finally:
--- a/cubicweb/wsgi/wz.py	Mon Mar 06 15:16:53 2017 +0100
+++ b/cubicweb/wsgi/wz.py	Mon Mar 06 13:15:51 2017 +0100
@@ -38,7 +38,6 @@
     app = CubicWebWSGIApplication(config)
     repo = app.appli.repo
     try:
-        repo.start_looping_tasks()
         LOGGER.info('starting http server on %s', config['base-url'])
         run_simple(interface, port, app,
                    threaded=True,