From e84d139df0da5a14df64bd8f18526533301a85f1 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 11 Jul 2012 16:52:33 -0400 Subject: [PATCH] simplify settings --- oyster/celeryconfig.py | 10 ---------- oyster/tasks.py | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/oyster/celeryconfig.py b/oyster/celeryconfig.py index 2ca16b9..c0d6aa4 100644 --- a/oyster/celeryconfig.py +++ b/oyster/celeryconfig.py @@ -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, -} diff --git a/oyster/tasks.py b/oyster/tasks.py index 873f05e..a7891be 100644 --- a/oyster/tasks.py +++ b/oyster/tasks.py @@ -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