MCPcopy Create free account
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 "progress": job.progress,
149 "docs_path": job.docs_path,
150 }
151
152 file_manager.save_json(data, self.jobs_file)
153 except Exception as e:
154 print(f"Error saving job statuses: {e}")
155
156 def _worker_loop(self):
157 """Main worker loop."""
158 while self.running:
159 try:
160 if not self.processing_queue.empty():
161 job_id = self.processing_queue.get(timeout=1)
162 self._process_job(job_id)
163 else:
164 time.sleep(1)

Callers

nothing calls this directly

Calls 2

_process_jobMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected