rename celery_init.py

This commit is contained in:
xucai
2024-06-12 19:48:28 +08:00
parent 3df745d1d2
commit ae2ded119f
5 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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):

View File

@@ -1,6 +1,6 @@
import platform
import dotenv
from application.celery import celery
from application.celery_init import celery
from flask import Flask, request, redirect
from application.core.settings import settings
from application.api.user.routes import user