[cwconfig] Do not instantiate a repo with a scheduler in repository method
None of the caller of this method need the repository to have a scheduler and
having a scheduler should be something that's explicitly requested.
--- a/cubicweb/cwconfig.py Mon Mar 06 14:50:00 2017 +0100
+++ b/cubicweb/cwconfig.py Mon Mar 06 15:13:44 2017 +0100
@@ -1121,8 +1121,7 @@
def repository(self, vreg=None):
"""Return a new bootstrapped repository."""
from cubicweb.server.repository import Repository
- from cubicweb.server.utils import scheduler
- repo = Repository(self, scheduler=scheduler(), vreg=vreg)
+ repo = Repository(self, vreg=vreg)
repo.bootstrap()
return repo