simplify settings
This commit is contained in:
parent
dd5e94cf86
commit
e84d139df0
@ -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,
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user