From bb3f993b70f74bf71a291a8aefe120cc19a3bc2c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 27 Jan 2012 18:11:28 +0530 Subject: [PATCH] update celery corntab import --- pandora/app/tasks.py | 2 +- pandora/event/tasks.py | 2 +- pandora/place/tasks.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/app/tasks.py b/pandora/app/tasks.py index f665620a4..4988da2e4 100644 --- a/pandora/app/tasks.py +++ b/pandora/app/tasks.py @@ -3,7 +3,7 @@ import datetime from celery.task import task, periodic_task -from celery.task.schedules import crontab +from celery.schedules import crontab @periodic_task(run_every=crontab(hour=6, minute=0), queue='encoding') diff --git a/pandora/event/tasks.py b/pandora/event/tasks.py index 7938ecb78..b55880777 100644 --- a/pandora/event/tasks.py +++ b/pandora/event/tasks.py @@ -3,7 +3,7 @@ from datetime import timedelta from celery.task import task, periodic_task -from celery.task.schedules import crontab +from celery.schedules import crontab from models import Event diff --git a/pandora/place/tasks.py b/pandora/place/tasks.py index b1a47c937..b044d1498 100644 --- a/pandora/place/tasks.py +++ b/pandora/place/tasks.py @@ -3,7 +3,7 @@ from datetime import timedelta from celery.task import task, periodic_task -from celery.task.schedules import crontab +from celery.schedules import crontab import models