MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / _worker_loop

Method _worker_loop

codewiki/src/fe/background_worker.py:150–161  ·  view source on GitHub ↗

Main worker loop.

(self)

Source from the content-addressed store, hash-verified

148 print(f"Error saving job statuses: {e}")
149
150 def _worker_loop(self):
151 """Main worker loop."""
152 while self.running:
153 try:
154 if not self.processing_queue.empty():
155 job_id = self.processing_queue.get(timeout=1)
156 self._process_job(job_id)
157 else:
158 time.sleep(1)
159 except Exception as e:
160 print(f"Worker error: {e}")
161 time.sleep(1)
162
163 def _process_job(self, job_id: str):
164 """Process a single documentation generation job."""

Callers

nothing calls this directly

Calls 2

_process_jobMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected