Mercurial > kallithea
comparison celeryconfig.py @ 533:53aa1ee1af86
updated tests for new version 6char password etc...
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Oct 2010 02:04:32 +0200 |
parents | d945c95ba4ac |
children | 72778dda34cf |
comparison
equal
deleted
inserted
replaced
532:946ed2955f48 | 533:53aa1ee1af86 |
---|---|
2 import sys | 2 import sys |
3 import os | 3 import os |
4 import ConfigParser | 4 import ConfigParser |
5 root = os.getcwd() | 5 root = os.getcwd() |
6 | 6 |
7 PYLONS_CONFIG_NAME = 'production.ini' | 7 PYLONS_CONFIG_NAME = 'test.ini' |
8 | 8 |
9 sys.path.append(root) | 9 sys.path.append(root) |
10 config = ConfigParser.ConfigParser({'here':root}) | 10 config = ConfigParser.ConfigParser({'here':root}) |
11 config.read('%s/%s' % (root, PYLONS_CONFIG_NAME)) | 11 config.read('%s/%s' % (root, PYLONS_CONFIG_NAME)) |
12 PYLONS_CONFIG = config | 12 PYLONS_CONFIG = config |
38 CELERYD_LOG_LEVEL = "DEBUG" | 38 CELERYD_LOG_LEVEL = "DEBUG" |
39 CELERYD_MAX_TASKS_PER_CHILD = 3 | 39 CELERYD_MAX_TASKS_PER_CHILD = 3 |
40 | 40 |
41 #Tasks will never be sent to the queue, but executed locally instead. | 41 #Tasks will never be sent to the queue, but executed locally instead. |
42 CELERY_ALWAYS_EAGER = False | 42 CELERY_ALWAYS_EAGER = False |
43 if PYLONS_CONFIG_NAME == 'test.ini': | |
44 #auto eager for tests | |
45 CELERY_ALWAYS_EAGER = True | |
43 | 46 |
44 #=============================================================================== | 47 #=============================================================================== |
45 # EMAIL SETTINGS | 48 # EMAIL SETTINGS |
46 #=============================================================================== | 49 #=============================================================================== |
47 pylons_email_config = dict(config.items('DEFAULT')) | 50 pylons_email_config = dict(config.items('DEFAULT')) |