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:
parent
79be94afd2
commit
6ee47f02c0
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ async def get_report_endpoint(request: ReportRequest):
|
||||||
# Wait briefly to avoid aggressive looping
|
# Wait briefly to avoid aggressive looping
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
# Stop if processing is complete and no more logs remain
|
# Stop if processing is complete and no more logs remain
|
||||||
if generator.researcher.complete:
|
if generator.complete:
|
||||||
break
|
break
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue