mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
rename celery_init.py
This commit is contained in:
@@ -229,7 +229,7 @@ def upload_remote():
|
||||
def task_status():
|
||||
"""Get celery job status."""
|
||||
task_id = request.args.get("task_id")
|
||||
from application.celery import celery
|
||||
from application.celery_init import celery
|
||||
|
||||
task = celery.AsyncResult(task_id)
|
||||
task_meta = task.info
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from application.worker import ingest_worker, remote_worker
|
||||
from application.celery import celery
|
||||
from application.celery_init import celery
|
||||
|
||||
@celery.task(bind=True)
|
||||
def ingest(self, directory, formats, name_job, filename, user):
|
||||
|
||||
Reference in New Issue
Block a user