mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 08:33:50 +00:00
22 lines
433 B
Python
22 lines
433 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from docling_serve.datamodel.task import Task
|
|
|
|
|
|
class BaseOrchestrator(ABC):
|
|
@abstractmethod
|
|
async def enqueue(self, task) -> Task:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def queue_size(self) -> int:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def task_status(self, task_id: str) -> Task:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def task_result(self, task_id: str):
|
|
pass
|