Skip to content

Commit

Permalink
I think we may still want to finish early for LimitScans; will check …
Browse files Browse the repository at this point in the history
…w/Mike
  • Loading branch information
mdr223 committed Jan 10, 2025
1 parent 41cfde0 commit c212b8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/palimpzest/query/execution/nosentinel_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ def execute_plan(self, plan: PhysicalPlan, num_samples: int | float = float("inf
still_processing = any([len(queue) > 0 for queue in processing_queues.values()])
finished_executing = not keep_scanning_source_records and not still_processing

# update finished_executing based on limit
if isinstance(operator, LimitScanOp):
finished_executing = len(output_records) == operator.limit

# if caching was allowed, close the cache
if not self.nocache:
for operator in plan.operators:
Expand Down

0 comments on commit c212b8d

Please sign in to comment.