mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-09 19:10:53 +00:00
13 lines
451 B
Python
13 lines
451 B
Python
from application.worker import ingest_worker, remote_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
|
|
|
|
@celery.task(bind=True)
|
|
def ingest_remote(self, source_data, job_name, user, loader):
|
|
resp = remote_worker(self, source_data, job_name, user, loader)
|
|
return resp
|