update celery corntab import
This commit is contained in:
parent
f9682e3fb6
commit
bb3f993b70
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from celery.task import task, periodic_task
|
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')
|
@periodic_task(run_every=crontab(hour=6, minute=0), queue='encoding')
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from celery.task import task, periodic_task
|
from celery.task import task, periodic_task
|
||||||
from celery.task.schedules import crontab
|
from celery.schedules import crontab
|
||||||
|
|
||||||
|
|
||||||
from models import Event
|
from models import Event
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from celery.task import task, periodic_task
|
from celery.task import task, periodic_task
|
||||||
from celery.task.schedules import crontab
|
from celery.schedules import crontab
|
||||||
|
|
||||||
import models
|
import models
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue