mirror of
https://github.com/ansible/awx.git
synced 2026-06-19 05:37:42 -02:30
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user