Skip to content

Commit

Permalink
fix(ingest/gc): infinite loop query entities (datahub-project#12274)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and llance committed Jan 13, 2025
1 parent f7936a5 commit f9a18cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _get_soft_deleted_queries(self) -> Iterable[str]:
)
break
scroll_across_entities = result.get("scrollAcrossEntities")
if not scroll_across_entities:
if not scroll_across_entities or not scroll_across_entities.get("count"):
break
scroll_id = scroll_across_entities.get("nextScrollId")
self.report.num_queries_found += scroll_across_entities.get("count")
Expand Down

0 comments on commit f9a18cd

Please sign in to comment.