mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 06:29:25 -02:30
Adding RuntimeError which is returned from a connection error in awx/main/dispatch/control.py
This commit is contained in:
@@ -1366,7 +1366,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
running = self.celery_task_id in ControlDispatcher(
|
running = self.celery_task_id in ControlDispatcher(
|
||||||
'dispatcher', self.controller_node or self.execution_node
|
'dispatcher', self.controller_node or self.execution_node
|
||||||
).running(timeout=timeout)
|
).running(timeout=timeout)
|
||||||
except socket.timeout:
|
except (socket.timeout, RuntimeError):
|
||||||
logger.error('could not reach dispatcher on {} within {}s'.format(
|
logger.error('could not reach dispatcher on {} within {}s'.format(
|
||||||
self.execution_node, timeout
|
self.execution_node, timeout
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user