MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / wait_for_next_pending_task

Method wait_for_next_pending_task

lightx2v/server/task_manager.py:240–246  ·  view source on GitHub ↗
(self, timeout: Optional[float] = None)

Source from the content-addressed store, hash-verified

238 logger.info(f"Task {task_id} acquired processing lock")
239 return acquired
240
241 def release_processing_lock(self, task_id: str):
242 with self._lock:
243 if self._current_processing_task == task_id:
244 self._current_processing_task = None
245 try:
246 self._processing_lock.release()
247 logger.info(f"Task {task_id} released processing lock")
248 except RuntimeError as e:
249 logger.warning(f"Task {task_id} tried to release lock but failed: {e}")

Callers 1

_task_processing_loopMethod · 0.80

Calls 2

waitMethod · 0.80

Tested by

no test coverage detected