mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from unittest.mock import patch
|
||||
from application.core.settings import settings
|
||||
from application.celery import make_celery
|
||||
from application.celery_init import make_celery
|
||||
|
||||
|
||||
@patch('application.celery.Celery')
|
||||
|
||||
Reference in New Issue
Block a user