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