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:
parent
ffeb2527b3
commit
ae4e81906e
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue