Skip to content

Commit

Permalink
OSM
Browse files Browse the repository at this point in the history
  • Loading branch information
docuracy committed Jan 25, 2025
1 parent 5b563b7 commit 1c618df
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions vespa/repository/api/ingestion/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,17 @@ async def process_batch(batch):
count = 0
filters = dataset_config.get('files')[transformer_index].get('filters')




async for document in stream:
while count < limit:
logger.info(document)
continue



async for document in stream:
logger.info(document)
continue

# Apply filters (if any)
if filters and not any(f(document) for f in filters):
Expand All @@ -308,10 +316,6 @@ async def process_batch(batch):
# Process the batch when it reaches the batch_size or limit
if len(current_batch) >= batch_size or (limit is not None and count >= limit):

# Temporarily skip processing TODO: REMOVE
logger.info(document)
continue

batch_results = await process_batch(current_batch)
results.extend(batch_results) # Collect results
current_batch = []
Expand Down

0 comments on commit 1c618df

Please sign in to comment.