Merge pull request #7823 from john-westcott-iv/cancel_500_error

Catching runtime error

Reviewed-by: Ryan Petrello
             https://github.com/ryanpetrello
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-08-04 22:25:50 +00:00 committed by GitHub
commit 3af31df2c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1366,7 +1366,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
running = self.celery_task_id in ControlDispatcher(
'dispatcher', self.controller_node or self.execution_node
).running(timeout=timeout)
except socket.timeout:
except (socket.timeout, RuntimeError):
logger.error('could not reach dispatcher on {} within {}s'.format(
self.execution_node, timeout
))