Refresh the build_job from the database before we write updates.

This commit is contained in:
Jake Moshenko 2014-12-23 11:17:23 -05:00
parent 34bf92673b
commit aac7feb20b
2 changed files with 9 additions and 6 deletions

View file

@ -67,7 +67,7 @@ class BuildComponent(BaseComponent):
def start_build(self, build_job):
""" Starts a build. """
self._current_job = build_job
self._build_status = StatusHandler(self.build_logs, build_job.repo_build)
self._build_status = StatusHandler(self.build_logs, build_job.repo_build.uuid)
self._image_info = {}
self._set_status(ComponentStatus.BUILDING)