feat: buffer

This commit is contained in:
2024-11-09 11:09:16 +03:00
parent e586a854b2
commit 8cb94d06bf

View File

@@ -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')