From f8fc3d107fe3caccbb97662e18f1df6598a3dce8 Mon Sep 17 00:00:00 2001 From: thanujdesu11 Date: Thu, 18 Jun 2026 13:05:04 -0400 Subject: [PATCH] AAP-78420: Updating the remediation condition in system.py to check for cpu and memory values set to 0. (#16499) Updating the remediation condition on line 636 to check for cpu and memory values set to 0. --- awx/main/tasks/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks/system.py b/awx/main/tasks/system.py index 58993b0b9b..569dd86afa 100644 --- a/awx/main/tasks/system.py +++ b/awx/main/tasks/system.py @@ -633,7 +633,7 @@ def inspect_execution_and_hop_nodes(instance_list): # check logger.warning(f'Execution node attempting to rejoin as instance {hostname}.') execution_node_health_check.apply_async([hostname]) - elif instance.capacity == 0 and instance.enabled: + elif (instance.capacity == 0 or (instance.cpu == 0 and instance.memory == 0)) and instance.enabled: # nodes with proven connection but need remediation run health checks are reduced frequency if not instance.last_health_check or (nowtime - instance.last_health_check).total_seconds() >= settings.EXECUTION_NODE_REMEDIATION_CHECKS: # Periodically re-run the health check of errored nodes, in case someone fixed it