Add missing call to set_phase when a build doesn't start

This change fixes the build manager ephemeral executor to tell the overall build server to call set_phase when a build never starts. Before this change, we'd properly adjust the queue item, but not the repo build row or the logs, which is why users just saw "Preparing Build Node", with no indicating the node failed to start.

Fixes #1904
This commit is contained in:
Joseph Schorr 2016-09-30 14:54:49 +02:00
parent b4dd5ea4dd
commit f50bb8a1ce
5 changed files with 17 additions and 11 deletions

View file

@ -452,8 +452,8 @@ class BuildComponent(BaseComponent):
requeued=self._current_job.has_retries_remaining())
yield From(self.parent_manager.job_completed(self._current_job,
BuildJobResult.INCOMPLETE,
self))
BuildJobResult.INCOMPLETE,
self))
self._current_job = None
# Unregister the current component so that it cannot be invoked again.