Fix build start check for the ephemeral case

This commit is contained in:
Joseph Schorr 2016-08-16 17:18:57 -04:00
parent e987994654
commit 0b50928900

View file

@ -73,7 +73,7 @@ class BuildComponent(BaseComponent):
@trollius.coroutine
def start_build(self, build_job):
""" Starts a build. """
if self._component_status != ComponentStatus.RUNNING:
if self._component_status not in (ComponentStatus.WAITING, ComponentStatus.RUNNING):
logger.debug('Could not start build for component %s (build %s, worker version: %s): %s',
self.builder_realm, build_job.repo_build.uuid, self._worker_version,
self._component_status)