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

Method set_max_queue_size

lightx2v/server/task_manager.py:271–276  ·  view source on GitHub ↗
(self, max_queue_size: int)

Source from the content-addressed store, hash-verified

269 def get_service_status(self) -> Dict[str, Any]:
270 with self._lock:
271 active_tasks = [task_id for task_id, task in self._tasks.items() if task.status == TaskStatus.PROCESSING]
272
273 pending_count = sum(1 for t in self._tasks.values() if t.status == TaskStatus.PENDING)
274
275 return {
276 "service_status": "busy" if self._current_processing_task else "idle",
277 "current_task": self._current_processing_task,
278 "active_tasks": active_tasks,
279 "pending_tasks": pending_count,

Callers 1

run_serverFunction · 0.80

Calls 1

Tested by

no test coverage detected