Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(send_kcidb.py): Limit submission batch to smaller value #953

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/send_kcidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,14 +654,16 @@ def _run(self, context):
try:
self._submit_parsed_data(batchcheckouts, batchbuilds, batchtests,
batchissues, batchincidents, context['client'])
chunksize = 200
# temporary restricted to 25, old value was 200
chunksize = 25
except Exception as exc:
self.log.error(f"Failed to submit data to KCIDB: {str(exc)}")
# do not mark nodes as processed, as they were not sent to KCIDB
batchnodes = []
# sometimes we get too much data and exceed gcloud limits,
# try to send smaller chunks
chunksize = 50
# Temporary restricted to 5, old value was 50
chunksize = 5

if len(batchnodes) > 0:
self._nodes_processed(batchnodes)
Expand Down