From 59f575d489ebafab77645c88e19806f0947cdc91 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 27 May 2012 12:05:07 +0000 Subject: [PATCH] disable place/event rebuild tasks, those should not be needed anymore --- pandora/event/tasks.py | 2 ++ pandora/place/tasks.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pandora/event/tasks.py b/pandora/event/tasks.py index b8989e43..d4997397 100644 --- a/pandora/event/tasks.py +++ b/pandora/event/tasks.py @@ -9,12 +9,14 @@ from celery.schedules import crontab from models import Event +''' @periodic_task(run_every=crontab(hour=7, minute=30), queue='encoding') def update_all_matches(**kwargs): ids = [e['id'] for e in Event.objects.all().values('id')] for i in ids: e = Event.objects.get(pk=i) e.update_matches() +''' @task(ignore_results=True, queue='default') def update_matches(eventId): diff --git a/pandora/place/tasks.py b/pandora/place/tasks.py index c575bba2..d3f01514 100644 --- a/pandora/place/tasks.py +++ b/pandora/place/tasks.py @@ -8,12 +8,14 @@ from celery.schedules import crontab import models +''' @periodic_task(run_every=crontab(hour=6, minute=30), queue='encoding') def update_all_matches(**kwargs): ids = [p['id'] for p in models.Place.objects.all().values('id')] for i in ids: p = models.Place.objects.get(pk=i) p.update_matches() +''' @task(ignore_results=True, queue='default') def update_matches(id):