update tasks to new api

This commit is contained in:
j 2023-08-21 23:25:03 +02:00
parent 788fb0fa75
commit d8b346b991

View file

@ -1,11 +1,12 @@
import os import os
import subprocess import subprocess
from celery.task import task from app.celery import app
base = os.path.dirname(__file__) base = os.path.dirname(__file__)
@task(queue="encoding")
@app.task(queue="encoding")
def import_documents(urls): def import_documents(urls):
for url in urls: for url in urls:
url = url.strip() url = url.strip()