MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / _warmup_worker

Function _warmup_worker

app/services/ocr_service.py:77–85  ·  view source on GitHub ↗
(index: int)

Source from the content-addressed store, hash-verified

75 self.settings = settings or get_settings()
76 self._executor: ProcessPoolExecutor | None = None
77 self._executor_lock = threading.Lock()
78 self._bootstrap_lock = threading.Lock()
79 self._engine_bootstrapped = False
80
81 def status_payload(self) -> dict[str, Any]:
82 missing = self._missing_dependencies()
83 return {
84 "enabled": self.settings.tencent_ocr_enabled,
85 "adapter": "local-tenvision-process-pool",
86 "available": not missing,
87 "missing_dependencies": missing,
88 "include_debug": self.settings.tencent_ocr_include_debug,

Callers

nothing calls this directly

Calls 4

_ignore_worker_sigintFunction · 0.85
_clear_proxy_envFunction · 0.85
_load_adapter_moduleFunction · 0.85

Tested by

no test coverage detected