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

Function data_stats

examples/celery_alternative/app.py:343–350  ·  view source on GitHub ↗

Get data worker statistics.

()

Source from the content-addressed store, hash-verified

341
342@app.get("/api/data/stats")
343async def data_stats():
344 """Get data worker statistics."""
345 try:
346 client = await get_dirty_client_async()
347 result = await client.execute_async(DATA_WORKER, "stats")
348 return result
349 except DirtyError as e:
350 raise HTTPException(status_code=500, detail=str(e))
351
352
353# ============================================================================

Callers

nothing calls this directly

Calls 2

get_dirty_client_asyncFunction · 0.90
execute_asyncMethod · 0.80

Tested by

no test coverage detected