disable place/event rebuild tasks, those should not be needed anymore

This commit is contained in:
j 2012-05-27 12:05:07 +00:00
parent 69b1e6c7b2
commit 59f575d489
2 changed files with 4 additions and 0 deletions

View file

@ -9,12 +9,14 @@ from celery.schedules import crontab
from models import Event from models import Event
'''
@periodic_task(run_every=crontab(hour=7, minute=30), queue='encoding') @periodic_task(run_every=crontab(hour=7, minute=30), queue='encoding')
def update_all_matches(**kwargs): def update_all_matches(**kwargs):
ids = [e['id'] for e in Event.objects.all().values('id')] ids = [e['id'] for e in Event.objects.all().values('id')]
for i in ids: for i in ids:
e = Event.objects.get(pk=i) e = Event.objects.get(pk=i)
e.update_matches() e.update_matches()
'''
@task(ignore_results=True, queue='default') @task(ignore_results=True, queue='default')
def update_matches(eventId): def update_matches(eventId):

View file

@ -8,12 +8,14 @@ from celery.schedules import crontab
import models import models
'''
@periodic_task(run_every=crontab(hour=6, minute=30), queue='encoding') @periodic_task(run_every=crontab(hour=6, minute=30), queue='encoding')
def update_all_matches(**kwargs): def update_all_matches(**kwargs):
ids = [p['id'] for p in models.Place.objects.all().values('id')] ids = [p['id'] for p in models.Place.objects.all().values('id')]
for i in ids: for i in ids:
p = models.Place.objects.get(pk=i) p = models.Place.objects.get(pk=i)
p.update_matches() p.update_matches()
'''
@task(ignore_results=True, queue='default') @task(ignore_results=True, queue='default')
def update_matches(id): def update_matches(id):