Fix build start check for the ephemeral case
This commit is contained in:
parent
e987994654
commit
0b50928900
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class BuildComponent(BaseComponent):
|
||||||
@trollius.coroutine
|
@trollius.coroutine
|
||||||
def start_build(self, build_job):
|
def start_build(self, build_job):
|
||||||
""" Starts a build. """
|
""" 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',
|
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.builder_realm, build_job.repo_build.uuid, self._worker_version,
|
||||||
self._component_status)
|
self._component_status)
|
||||||
|
|
Reference in a new issue