Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

739 B
Raw Blame
from collections.abc import Callable
from typing import Any, ClassVar

from services.document_indexing_proxy.batch_indexing_base import BatchDocumentIndexingProxy
from tasks.duplicate_document_indexing_task import (
    normal_duplicate_document_indexing_task,
    priority_duplicate_document_indexing_task,
)

TaskFunc = Callable[..., Any]


class DuplicateDocumentIndexingTaskProxy(BatchDocumentIndexingProxy):
    """Proxy for duplicate document indexing tasks."""

    QUEUE_NAME: ClassVar[str] = "duplicate_document_indexing"
    NORMAL_TASK_FUNC: ClassVar[TaskFunc] = normal_duplicate_document_indexing_task  # pyrefly: ignore
    PRIORITY_TASK_FUNC: ClassVar[TaskFunc] = priority_duplicate_document_indexing_task  # pyrefly: ignore