CELERY_TASK_MODULES oyster setting

This commit is contained in:
James Turk 2011-10-03 16:01:29 -04:00
parent f6282c8040
commit d3ed585a8c
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
from oyster.conf import settings from oyster.conf import settings
CELERY_IMPORTS = ("oyster.tasks",) CELERY_IMPORTS = ["oyster.tasks"] + list(settings.CELERY_TASK_MODULES)
BROKER_TRANSPORT = 'mongodb' BROKER_TRANSPORT = 'mongodb'
BROKER_HOST = settings.MONGO_HOST BROKER_HOST = settings.MONGO_HOST

View File

@ -4,6 +4,9 @@ MONGO_PORT = 27017
MONGO_DATABASE = 'oyster' MONGO_DATABASE = 'oyster'
MONGO_LOG_MAXSIZE = 100000000 MONGO_LOG_MAXSIZE = 100000000
# extra celery modules
CELERY_TASK_MODULES = []
# scrapelib # scrapelib
USER_AGENT = 'oyster' USER_AGENT = 'oyster'
REQUESTS_PER_MINUTE = 60 REQUESTS_PER_MINUTE = 60