Add background conversion taks to the converter app
This commit is contained in:
12
mayan/apps/converter/tasks.py
Normal file
12
mayan/apps/converter/tasks.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import logging
|
||||
|
||||
from mayan.celery import app
|
||||
|
||||
from .api import convert
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@app.task
|
||||
def task_convert(*args, **kwargs):
|
||||
return convert(*args, **kwargs)
|
||||
Reference in New Issue
Block a user