euscanwww: using djcelery.schedulers.DatabaseScheduler for periodic tasks

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-07-18 17:16:31 +02:00
parent 339ae58445
commit c483ac41f1

View File

@ -1,7 +1,6 @@
# Django settings for euscanwww project.
import os.path
from datetime import timedelta
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@ -241,21 +240,7 @@ CELERYD_CONCURRENCY = 4
TASKS_CONCURRENTLY = 8
TASKS_SUBTASK_PACKAGES = 32
CELERYBEAT_SCHEDULE = {
"refresh_package_query": {
"task": "djeuscan.tasks.consume_refresh_package_request",
"schedule": timedelta(minutes=1),
},
"weekly_update": {
"task": "djeuscan.tasks.update_task",
"schedule": timedelta(days=7),
},
"daily_update": {
"task": "djeuscan.tasks.update_task",
"schedule": timedelta(days=1),
"kwargs": {"scan_upstream": False}
},
}
CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"
# LDAP authentication
# TODO: Test data - change me!