##// END OF EJS Templates
celery: upgrade to Celery 3...
Mads Kiilerich -
r6137:4f2e231d default
parent child Browse files
Show More
@@ -33,4 +33,4 b" os.environ['CELERY_LOADER'] = CELERYPYLO"
33 import celery.app as app
33 import celery.app as app
34 import celery.result as result
34 import celery.result as result
35 from celery.task import task
35 from celery.task import task
36 from celery.bin import celeryd
36 from celery.bin import worker
@@ -24,7 +24,7 b' class Command(BasePasterCommand):'
24
24
25 def update_parser(self):
25 def update_parser(self):
26 from kallithea.lib import celerypylons
26 from kallithea.lib import celerypylons
27 cmd = celerypylons.celeryd.WorkerCommand(celerypylons.app.app_or_default())
27 cmd = celerypylons.worker.worker(celerypylons.app.app_or_default())
28 for x in cmd.get_options():
28 for x in cmd.get_options():
29 self.parser.add_option(x)
29 self.parser.add_option(x)
30
30
@@ -42,5 +42,5 b' class Command(BasePasterCommand):'
42 kallithea.CELERY_ON = CELERY_ON
42 kallithea.CELERY_ON = CELERY_ON
43
43
44 load_rcextensions(config['here'])
44 load_rcextensions(config['here'])
45 cmd = celerypylons.celeryd.WorkerCommand(celerypylons.app.app_or_default())
45 cmd = celerypylons.worker.worker(celerypylons.app.app_or_default())
46 return cmd.run(**vars(self.options))
46 return cmd.run(**vars(self.options))
@@ -47,7 +47,7 b' requirements = ['
47 "Mako>=0.9.0,<=1.0.0",
47 "Mako>=0.9.0,<=1.0.0",
48 "pygments>=1.5",
48 "pygments>=1.5",
49 "whoosh>=2.4.0,<=2.5.7",
49 "whoosh>=2.4.0,<=2.5.7",
50 "celery>=2.2.5,<2.3",
50 "celery>=3.1,<3.2",
51 "babel>=0.9.6,<=1.3",
51 "babel>=0.9.6,<=1.3",
52 "python-dateutil>=1.5.0,<2.0.0",
52 "python-dateutil>=1.5.0,<2.0.0",
53 "markdown==2.2.1",
53 "markdown==2.2.1",
General Comments 0
You need to be logged in to leave comments. Login now