run queued in encoding

This commit is contained in:
j 2016-04-01 19:38:16 +02:00
parent 86660409b9
commit 4fed9cbe58

View file

@ -17,7 +17,6 @@ import text.models
def cron(**kwargs): def cron(**kwargs):
update_double_imdb() update_double_imdb()
outofcopyright() outofcopyright()
update_queued()
update_keywords() update_keywords()
def outofcopyright(): def outofcopyright():
@ -52,6 +51,7 @@ def update_keywords():
t.text = '\n'.join(data) t.text = '\n'.join(data)
t.save() t.save()
@periodic_task(run_every=crontab(minute=0), queue='encoding')
def update_queued(): def update_queued():
import archive.models import archive.models
l = itemlist.models.List.get('j:Queued') l = itemlist.models.List.get('j:Queued')