cubicweb/pyramid/pyramidctl.py
changeset 12003 5236ce988805
parent 11967 83739be20fab
child 12053 c3c9f2e1424c
--- a/cubicweb/pyramid/pyramidctl.py	Mon Mar 06 15:22:16 2017 +0100
+++ b/cubicweb/pyramid/pyramidctl.py	Mon Mar 06 13:49:51 2017 +0100
@@ -35,6 +35,7 @@
 import time
 import threading
 import subprocess
+import warnings
 
 from cubicweb import ExecutionError
 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg
@@ -338,8 +339,11 @@
         host = cwconfig['interface']
         port = cwconfig['port'] or 8080
         repo = app.application.registry['cubicweb.repository']
+        warnings.warn(
+            'the "pyramid" command does not start repository "looping tasks" '
+            'anymore; use the standalone "scheduler" command if needed'
+        )
         try:
-            repo.start_looping_tasks()
             waitress.serve(app, host=host, port=port)
         finally:
             repo.shutdown()