()
| 135 | |
| 136 | @bp.get("/api/tasks") |
| 137 | def api_tasks(): |
| 138 | run_root = _resolve_run_root(get_visualizer_path()) |
| 139 | qdir = _queue_dir(run_root) |
| 140 | items = _list_tasks(qdir) |
| 141 | data = [{"id": t.id, "created_at": t.created_at, "model": t.model} for t in items] |
| 142 | return jsonify({"tasks": data}) |
| 143 | |
| 144 | @bp.get("/api/tasks/<task_id>") |
| 145 | def api_task_detail(task_id: str): |
nothing calls this directly
no test coverage detected