MCPcopy Create free account
hub / github.com/chatdoc-com/OCRFlux / initialize_queue

Method initialize_queue

ocrflux/work_queue.py:41–49  ·  view source on GitHub ↗

Load the work queue from the relevant store (local or remote) and initialize it for processing. For example, this might remove already completed work items and randomize the order before adding them to an internal queue.

(self)

Source from the content-addressed store, hash-verified

39
40 @abc.abstractmethod
41 async def initialize_queue(self) -> int:
42 """
43 Load the work queue from the relevant store (local or remote)
44 and initialize it for processing.
45
46 For example, this might remove already completed work items and randomize
47 the order before adding them to an internal queue.
48 """
49 pass
50
51 @abc.abstractmethod
52 async def is_completed(self, work_hash: str) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected