From ab8e87660925cba259cdc20f273270089c65204c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 9 Oct 2011 17:57:12 +0200 Subject: [PATCH] add tasks --- pandora/event/tasks.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pandora/event/tasks.py diff --git a/pandora/event/tasks.py b/pandora/event/tasks.py new file mode 100644 index 000000000..373666839 --- /dev/null +++ b/pandora/event/tasks.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 +from datetime import timedelta + +from celery.decorators import task, periodic_task + +import models + + +@task(ignore_resulsts=True, queue='default') +def update_matches(eventId): + event = models.Event.objects.get(pk=eventId) + event.update_matches() +