mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-08 01:10:24 +00:00
8 lines
265 B
Python
8 lines
265 B
Python
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
|