Skip to content

Commit

Permalink
search: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miili committed Mar 15, 2024
1 parent c832c32 commit 92ed89c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qseek/images/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ async def worker() -> None:
"start pre-processing images, queue size %d", self._queue.maxsize
)
async for batch in batch_iterator:
if batch.is_empty():
logger.debug("empty batch, skipping")
continue

start_time = datetime_now()
images = await self.process_traces(batch.traces)
stats.time_per_batch = datetime_now() - start_time
Expand Down

0 comments on commit 92ed89c

Please sign in to comment.