Show More
@@ -39,7 +39,7 b' def load_environment(global_conf, app_co' | |||
|
39 | 39 | # Initialize config with the basic options |
|
40 | 40 | config.init_app(global_conf, app_conf, package='rhodecode', paths=paths) |
|
41 | 41 | |
|
42 |
# store some globals into |
|
|
42 | # store some globals into rhodecode | |
|
43 | 43 | rhodecode.CELERY_ON = str2bool(config['app_conf'].get('use_celery')) |
|
44 | 44 | rhodecode.CONFIG = config |
|
45 | 45 |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | from rhodecode.lib.utils import BasePasterCommand, Command |
|
2 | 2 | from celery.app import app_or_default |
|
3 | 3 | from celery.bin import camqadm, celerybeat, celeryd, celeryev |
|
4 | from pylons import config | |
|
4 | ||
|
5 | 5 | from rhodecode.lib import str2bool |
|
6 | 6 | |
|
7 | 7 | __all__ = ['CeleryDaemonCommand', 'CeleryBeatCommand', |
@@ -28,6 +28,7 b' class CeleryCommand(BasePasterCommand):' | |||
|
28 | 28 | self.parser.add_option(x) |
|
29 | 29 | |
|
30 | 30 | def command(self): |
|
31 | from pylons import config | |
|
31 | 32 | try: |
|
32 | 33 | CELERY_ON = str2bool(config['app_conf'].get('use_celery')) |
|
33 | 34 | except KeyError: |
General Comments 0
You need to be logged in to leave comments.
Login now