feat: buffer
This commit is contained in:
@@ -37,6 +37,9 @@ async def flush_buffer():
|
||||
|
||||
product_ids = await buffer.get_tasks()
|
||||
total_products = len(product_ids)
|
||||
if not product_ids:
|
||||
logging.info('Buffer is empty')
|
||||
return
|
||||
logging.info(f'Flushing buffer with {total_products} products')
|
||||
await process_update(product_ids)
|
||||
logging.info(f'Buffer flushed with {total_products} products')
|
||||
|
||||
Reference in New Issue
Block a user