Skip to content

Commit 941d7af

Browse files
committed
Mark nodes as processed even if empty
Some nodes are not eligible to be sent to KCIDB, for example custom user supplied nodes, but we need to mark them as processed, otherwise they will keep wasting cpu cycles and appear in new findfast queries. Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent f96e3ab commit 941d7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/send_kcidb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,12 +761,12 @@ def _submit_to_kcidb(self, batch, context):
761761
batch['checkouts'], batch['builds'], batch['tests'],
762762
batch['issues'], batch['incidents'], context['client']
763763
)
764-
self._nodes_processed(batch['nodes'])
765764
except Exception as exc:
766765
self.log.error(f"Failed to submit data to KCIDB: {str(exc)}")
767766
# Don't mark as processed since they were not sent to KCIDB
768767
batch['nodes'] = []
769768
return False
769+
self._nodes_processed(batch['nodes'])
770770
return True
771771

772772
def _reset_batch_data(self):

0 commit comments

Comments
 (0)