From 27676b063469cceb2568d71e58a5da117fc4339d Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Tue, 4 Aug 2020 17:17:38 -0400 Subject: [PATCH] Adding RuntimeError which is returned from a connection error in awx/main/dispatch/control.py --- awx/main/models/unified_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index 1a87b716e3..1abbb29fcb 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -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 ))