Get email worker statistics.
()
| 180 | |
| 181 | @app.get("/api/email/stats") |
| 182 | async 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 | # ============================================================================ |
nothing calls this directly
no test coverage detected