diff --git a/oyster/celeryconfig.py b/oyster/celeryconfig.py index a68dddc..d3e6cb6 100644 --- a/oyster/celeryconfig.py +++ b/oyster/celeryconfig.py @@ -1,6 +1,6 @@ from oyster.conf import settings -CELERY_IMPORTS = ("oyster.tasks",) +CELERY_IMPORTS = ["oyster.tasks"] + list(settings.CELERY_TASK_MODULES) BROKER_TRANSPORT = 'mongodb' BROKER_HOST = settings.MONGO_HOST diff --git a/oyster/conf/default_settings.py b/oyster/conf/default_settings.py index 557d086..88d9a2e 100644 --- a/oyster/conf/default_settings.py +++ b/oyster/conf/default_settings.py @@ -4,6 +4,9 @@ MONGO_PORT = 27017 MONGO_DATABASE = 'oyster' MONGO_LOG_MAXSIZE = 100000000 +# extra celery modules +CELERY_TASK_MODULES = [] + # scrapelib USER_AGENT = 'oyster' REQUESTS_PER_MINUTE = 60