Skip to content

Commit c146922

Browse files
anshbansalllance
authored andcommitted
fix(ingest/gc): infinite loop query entities (datahub-project#12274)
1 parent f8ca98b commit c146922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metadata-ingestion/src/datahub/ingestion/source/gc/soft_deleted_entity_cleanup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _get_soft_deleted_queries(self) -> Iterable[str]:
258258
)
259259
break
260260
scroll_across_entities = result.get("scrollAcrossEntities")
261-
if not scroll_across_entities:
261+
if not scroll_across_entities or not scroll_across_entities.get("count"):
262262
break
263263
scroll_id = scroll_across_entities.get("nextScrollId")
264264
self.report.num_queries_found += scroll_across_entities.get("count")

0 commit comments

Comments
 (0)