Add progress messages to report generation process

This change introduces status updates to indicate the start and successful completion of the report generation. These progress messages improve user feedback during the asynchronous operation.
This commit is contained in:
ThomasTaroni 2025-04-25 19:26:18 +02:00
parent ffeb2527b3
commit ae4e81906e

View file

@ -36,6 +36,7 @@ async def get_report_endpoint(request: ReportRequest):
async def generate_report():
try:
# Call the asynchronous get_report function
yield "Report generation started...\n"
generator = ReportGenerator(request.query, request.report_type)
custom_logs_handler = await generator.generate_report()
yield "Report generation completed successfully!\n"