diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-09-18 10:47:38 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-10-07 00:06:09 +0000 |
commit | 3c59628c80ffe47992bf7347268ca587fc6d368d (patch) | |
tree | fba278b5fb0eff894f6b1f60514dfee6c6377ded /distbuild/build_controller.py | |
parent | 50dd4970f61db4ba203f1aea067ab20ef944fe73 (diff) | |
download | morph-3c59628c80ffe47992bf7347268ca587fc6d368d.tar.gz |
distbuild: When a build finishes, say which worker it was built on
Change-Id: I493fced8cf2664283923f6f41097ca991d3fc3de
Diffstat (limited to 'distbuild/build_controller.py')
-rw-r--r-- | distbuild/build_controller.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py index bfd910b2..a65fd243 100644 --- a/distbuild/build_controller.py +++ b/distbuild/build_controller.py @@ -121,9 +121,10 @@ class BuildOutput(object): class BuildStepFinished(object): - def __init__(self, request_id, step_name): + def __init__(self, request_id, step_name, worker_name): self.id = request_id self.step_name = step_name + self.worker_name = worker_name class BuildStepFailed(object): @@ -810,7 +811,7 @@ class BuildController(distbuild.StateMachine): 'Got build result for %s: %s', artifact.name, repr(event.msg)) finished = BuildStepFinished( - self._request['id'], build_step_name(artifact)) + self._request['id'], build_step_name(artifact), event.worker_name) self.mainloop.queue_event(BuildController, finished) artifact.state = BUILT |