MCPcopy
hub / github.com/benoitc/gunicorn / image_stats

Function image_stats

examples/celery_alternative/app.py:262–269  ·  view source on GitHub ↗

Get image worker statistics.

()

Source from the content-addressed store, hash-verified

260
261@app.get("/api/image/stats")
262async def image_stats():
263 """Get image worker statistics."""
264 try:
265 client = await get_dirty_client_async()
266 result = await client.execute_async(IMAGE_WORKER, "stats")
267 return result
268 except DirtyError as e:
269 raise HTTPException(status_code=500, detail=str(e))
270
271
272# ============================================================================

Callers

nothing calls this directly

Calls 2

get_dirty_client_asyncFunction · 0.90
execute_asyncMethod · 0.80

Tested by

no test coverage detected