Record and report time for trigger events

Sometimes, e.g. during reconfiguration, it can take quite some time
between the trigger event and when a change is enqueued.

This change allows tracking the time it takes from receiving the event
until it is processed by the scheduler.

Change-Id: I347acf56bc8d7671d96f6be444c71902563684be
This commit is contained in:
Simon Westphahl
2019-07-17 09:30:19 +02:00
parent 06a9ae22dd
commit c6f4cb21a3
11 changed files with 15 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ class MQTTReporter(BaseReporter):
'ref': getattr(item.change, 'ref', ''),
'message': self._formatItemReport(
item, with_jobs=False),
'trigger_time': item.event.timestamp,
'enqueue_time': item.enqueue_time,
'buildset': {
'uuid': item.current_build_set.uuid,