update_queued in crontab only
This commit is contained in:
parent
c0c76f2ed5
commit
e4099d642d
1 changed files with 3 additions and 3 deletions
6
tasks.py
6
tasks.py
|
@ -14,11 +14,12 @@ import annotation.models
|
|||
import text.models
|
||||
|
||||
|
||||
@app.task(queue='encoding')
|
||||
@app.task(ignore_results=True, queue='encoding')
|
||||
def cron(**kwargs):
|
||||
update_double_imdb()
|
||||
outofcopyright()
|
||||
update_keywords()
|
||||
update_queued()
|
||||
|
||||
|
||||
def outofcopyright():
|
||||
|
@ -56,7 +57,7 @@ def update_keywords():
|
|||
t.save()
|
||||
|
||||
|
||||
@app.task(queue='encoding')
|
||||
@app.task(ignore_results=True, queue='encoding')
|
||||
def update_queued():
|
||||
import archive.models
|
||||
l = itemlist.models.List.get('j:Queued')
|
||||
|
@ -77,5 +78,4 @@ def update_queued():
|
|||
@app.on_after_finalize.connect
|
||||
def setup_periodic_tasks(sender, **kwargs):
|
||||
sender.add_periodic_task(crontab(hour=6, minute=0), cron.s())
|
||||
sender.add_periodic_task(crontab(minute=0), update_queued.s())
|
||||
|
||||
|
|
Loading…
Reference in a new issue