update tasks to new api
This commit is contained in:
parent
788fb0fa75
commit
d8b346b991
1 changed files with 3 additions and 2 deletions
5
tasks.py
5
tasks.py
|
@ -1,11 +1,12 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
from celery.task import task
|
||||
from app.celery import app
|
||||
|
||||
base = os.path.dirname(__file__)
|
||||
|
||||
@task(queue="encoding")
|
||||
|
||||
@app.task(queue="encoding")
|
||||
def import_documents(urls):
|
||||
for url in urls:
|
||||
url = url.strip()
|
||||
|
|
Loading…
Reference in a new issue