diff rhodecode/lib/celerypylons/commands.py @ 1728:07e56179633e beta

- fixes celery sqlalchemy session issues for async forking - summary page css fixes - speed optimizations
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 26 Nov 2011 17:51:03 +0200
parents fe8c2e881403
children 8ecfed1d8f8b
line wrap: on
line diff
--- a/rhodecode/lib/celerypylons/commands.py	Sat Nov 26 03:01:08 2011 +0200
+++ b/rhodecode/lib/celerypylons/commands.py	Sat Nov 26 17:51:03 2011 +0200
@@ -1,3 +1,4 @@
+import rhodecode
 from rhodecode.lib.utils import BasePasterCommand, Command
 from celery.app import app_or_default
 from celery.bin import camqadm, celerybeat, celeryd, celeryev
@@ -37,7 +38,7 @@
         if CELERY_ON == False:
             raise Exception('Please enable celery_on in .ini config '
                             'file before running celeryd')
-
+        rhodecode.CELERY_ON = CELERY_ON
         cmd = self.celery_command(app_or_default())
         return cmd.run(**vars(self.options))