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

Function run_daily_report

examples/celery_alternative/app.py:374–381  ·  view source on GitHub ↗

Generate daily report.

()

Source from the content-addressed store, hash-verified

372
373@app.post("/api/scheduled/daily-report")
374async def run_daily_report():
375 """Generate daily report."""
376 try:
377 client = await get_dirty_client_async()
378 result = await client.execute_async(SCHEDULED_WORKER, "generate_daily_report")
379 return result
380 except DirtyError as e:
381 raise HTTPException(status_code=500, detail=str(e))
382
383
384@app.post("/api/scheduled/sync")

Callers

nothing calls this directly

Calls 2

get_dirty_client_asyncFunction · 0.90
execute_asyncMethod · 0.80

Tested by

no test coverage detected