Print the length of the flattened list in debug message
This commit is contained in:
parent
eaf9a3c937
commit
dc1ed1fe10
@ -123,15 +123,15 @@ async def spawn_processing_threads(data):
|
||||
tasks.append(task)
|
||||
|
||||
results = [await task for task in tasks]
|
||||
log.debug(
|
||||
(
|
||||
f"Results from processing of {len_data} messages in "
|
||||
f"{len(split_data)} threads: {len(results)}"
|
||||
)
|
||||
)
|
||||
|
||||
# Join the results back from the split list
|
||||
flat_list = [item for sublist in results for item in sublist]
|
||||
log.debug(
|
||||
(
|
||||
f"Results from processing of {len_data} messages in "
|
||||
f"{len(split_data)} threads: {len(flat_list)}"
|
||||
)
|
||||
)
|
||||
await db.store_kafka_batch(flat_list)
|
||||
|
||||
# log.debug(f"Finished processing {len_data} messages")
|
||||
|
Loading…
Reference in New Issue
Block a user