Get queue status, scoped to the caller's API key.
(**kwargs)
| 198 | @bp.route("/queue/status", methods=["GET"]) |
| 199 | @unified_api_decorator() |
| 200 | def get_queue_status(**kwargs) -> Tuple[Response, int]: |
| 201 | """Get queue status, scoped to the caller's API key.""" |
| 202 | try: |
| 203 | owner_key = _caller_owner_key() |
| 204 | queue_status = queue_manager.get_queue_status(owner_key=owner_key) |
| 205 | return jsonify({ |
| 206 | "success": True, |
| 207 | **queue_status |
| 208 | }), 200 |
| 209 | |
| 210 | except Exception as e: |
| 211 | logger.error(f"Error getting queue status: {e}") |
| 212 | return jsonify({"status": "error", "error": str(e)}), 500 |
| 213 | |
| 214 | return bp |
nothing calls this directly
no test coverage detected