Skip to content

Commit 8781263

Browse files
committed
fix(send_kcidb.py): Limit submission batch to smaller value
We might send up to 200 events at once and it is causing problems at kcidb, let's limit temporary to less at once. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 9d361ef commit 8781263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/send_kcidb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def _run(self, context):
651651
"""Main run loop that processes nodes and sends data to KCIDB"""
652652
self.log.info("Listening for events... Press Ctrl-C to stop.")
653653

654-
chunksize = 200
654+
chunksize = 20
655655

656656
while True:
657657
is_hierarchy = False
@@ -674,7 +674,7 @@ def _run(self, context):
674674
# Submit batch
675675
# Sometimes we get too much data and exceed gcloud limits,
676676
# so we reduce the chunk size to 50 and try again
677-
chunksize = 50 if not self._submit_to_kcidb(batch, context) else 200
677+
chunksize = 5 if not self._submit_to_kcidb(batch, context) else 20
678678

679679
self._clean_caches()
680680

0 commit comments

Comments
 (0)