Mercurial > kallithea
comparison rhodecode/config/environment.py @ 2299:e2dbdaf13562 beta
Don't clear dbsessions when celery_eager is turned on
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 17 May 2012 14:26:43 +0200 |
parents | 8ecfed1d8f8b |
children | edfff9f37916 380d6d86da1f |
comparison
equal
deleted
inserted
replaced
2297:4747af4ce203 | 2299:e2dbdaf13562 |
---|---|
45 # Initialize config with the basic options | 45 # Initialize config with the basic options |
46 config.init_app(global_conf, app_conf, package='rhodecode', paths=paths) | 46 config.init_app(global_conf, app_conf, package='rhodecode', paths=paths) |
47 | 47 |
48 # store some globals into rhodecode | 48 # store some globals into rhodecode |
49 rhodecode.CELERY_ON = str2bool(config['app_conf'].get('use_celery')) | 49 rhodecode.CELERY_ON = str2bool(config['app_conf'].get('use_celery')) |
50 rhodecode.CELERY_EAGER = str2bool(config['app_conf'].get('celery.always.eager')) | |
50 | 51 |
51 config['routes.map'] = make_map(config) | 52 config['routes.map'] = make_map(config) |
52 config['pylons.app_globals'] = app_globals.Globals(config) | 53 config['pylons.app_globals'] = app_globals.Globals(config) |
53 config['pylons.h'] = helpers | 54 config['pylons.h'] = helpers |
54 rhodecode.CONFIG = config | 55 rhodecode.CONFIG = config |