mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-02-16 19:20:53 +00:00
working full
This commit is contained in:
7
application/api/user/tasks.py
Normal file
7
application/api/user/tasks.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from application.worker import ingest_worker
|
||||
from application.celery import celery
|
||||
|
||||
@celery.task(bind=True)
|
||||
def ingest(self, directory, formats, name_job, filename, user):
|
||||
resp = ingest_worker(self, directory, formats, name_job, filename, user)
|
||||
return resp
|
||||
Reference in New Issue
Block a user