From c483ac41f18d598aabe3e793f12072c9b610620a Mon Sep 17 00:00:00 2001 From: volpino Date: Wed, 18 Jul 2012 17:16:31 +0200 Subject: [PATCH] euscanwww: using djcelery.schedulers.DatabaseScheduler for periodic tasks Signed-off-by: volpino --- euscanwww/euscanwww/settings.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/euscanwww/euscanwww/settings.py b/euscanwww/euscanwww/settings.py index be6cc85..7a936eb 100644 --- a/euscanwww/euscanwww/settings.py +++ b/euscanwww/euscanwww/settings.py @@ -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!