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

Function email_stats

examples/celery_alternative/app.py:182–189  ·  view source on GitHub ↗

Get email worker statistics.

()

Source from the content-addressed store, hash-verified

180
181@app.get("/api/email/stats")
182async def email_stats():
183 """Get email worker statistics."""
184 try:
185 client = await get_dirty_client_async()
186 result = await client.execute_async(EMAIL_WORKER, "stats")
187 return result
188 except DirtyError as e:
189 raise HTTPException(status_code=500, detail=str(e))
190
191
192# ============================================================================

Callers

nothing calls this directly

Calls 2

get_dirty_client_asyncFunction · 0.90
execute_asyncMethod · 0.80

Tested by

no test coverage detected