upload_remote class

This commit is contained in:
Pavel
2024-02-13 23:41:36 +03:00
parent c144f30606
commit 030c2a740f
3 changed files with 37 additions and 6 deletions

View File

@@ -1,7 +1,12 @@
from application.worker import ingest_worker
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