MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / get_queue_status

Function get_queue_status

keepercommander/service/api/command.py:200–212  ·  view source on GitHub ↗

Get queue status, scoped to the caller's API key.

(**kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_caller_owner_keyFunction · 0.85
get_queue_statusMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected