simplify settings

This commit is contained in:
James Turk 2012-07-11 16:52:33 -04:00
parent dd5e94cf86
commit e84d139df0
2 changed files with 1 additions and 10 deletions

View File

@ -1,13 +1,3 @@
from oyster.conf import settings
CELERY_IMPORTS = ['oyster.tasks'] + list(settings.CELERY_TASK_MODULES)
BROKER_TRANSPORT = 'mongodb'
BROKER_HOST = settings.MONGO_HOST
BROKER_PORT = settings.MONGO_PORT
CELERY_RESULT_BACKEND = 'mongodb'
CELERY_MONGODB_BACKEND_SETTINGS = {
'host': settings.MONGO_HOST,
'port': settings.MONGO_PORT,
}

View File

@ -22,6 +22,7 @@ class UpdateTaskScheduler(PeriodicTask):
# 60s tick
run_every = 60
ignore_result = True
def run(self):
# if the update queue isn't empty, wait to add more