Fix incorrect attribute access for generator completion check

Replaced `generator.researcher.complete` with the correct `generator.complete`. This resolves a potential logic error and ensures the completion condition is properly evaluated.
This commit is contained in:
ThomasTaroni 2025-04-25 19:57:01 +02:00
parent 79be94afd2
commit 6ee47f02c0

View file

@ -52,7 +52,7 @@ async def get_report_endpoint(request: ReportRequest):
# Wait briefly to avoid aggressive looping
await asyncio.sleep(0.1)
# Stop if processing is complete and no more logs remain
if generator.researcher.complete:
if generator.complete:
break
except Exception as e: