parent
eeb4f952dc
commit
fbc4927544
1 changed files with 2 additions and 2 deletions
|
@ -293,8 +293,6 @@ class BuildComponent(BaseComponent):
|
|||
self._current_job.send_notification('build_success', image_id=kwargs.get('image_id'))
|
||||
except ApplicationError as aex:
|
||||
build_id = self._current_job.repo_build.uuid
|
||||
logger.exception('Got remote exception for build: %s', build_id)
|
||||
|
||||
worker_error = WorkerError(aex.error, aex.kwargs.get('base_error'))
|
||||
|
||||
# Write the error to the log.
|
||||
|
@ -308,8 +306,10 @@ class BuildComponent(BaseComponent):
|
|||
|
||||
# Mark the build as completed.
|
||||
if worker_error.is_internal_error():
|
||||
logger.exception('Got remote internal exception for build: %s', build_id)
|
||||
trollius.async(self._build_finished(BuildJobResult.INCOMPLETE))
|
||||
else:
|
||||
logger.debug('Got remote failure exception for build %s: %s', build_id, aex)
|
||||
trollius.async(self._build_finished(BuildJobResult.ERROR))
|
||||
|
||||
@trollius.coroutine
|
||||
|
|
Reference in a new issue