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

Function get_queue_status

lightx2v/server/api/tasks/common.py:67–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66 return _stream_file_response(full_path)
67
68 except HTTPException:
69 raise
70 except Exception as e:
71 logger.error(f"Error occurred while getting task result: {e}")
72 raise HTTPException(status_code=500, detail="Failed to get task result")
73
74
75def _completed_task(task_id):
76 task = task_manager.get_task(task_id)
77 if task is None:
78 raise HTTPException(status_code=404, detail="Task not found")
79 if task.status != TaskStatus.COMPLETED:
80 raise HTTPException(status_code=409, detail=task.error or "Task not completed")

Callers

nothing calls this directly

Calls 6

get_servicesFunction · 0.85
get_service_statusMethod · 0.80
is_processingMethod · 0.80
get_active_task_countMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected