mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Avoid cache warning for dispatching control type tasks
This commit is contained in:
@@ -609,8 +609,6 @@ class TaskManager(TaskBase):
|
|||||||
|
|
||||||
found_acceptable_queue = False
|
found_acceptable_queue = False
|
||||||
|
|
||||||
preferred_instance_groups = self.instance_groups.get_instance_groups_from_task_cache(task)
|
|
||||||
|
|
||||||
# Determine if there is control capacity for the task
|
# Determine if there is control capacity for the task
|
||||||
if task.capacity_type == 'control':
|
if task.capacity_type == 'control':
|
||||||
control_impact = task.task_impact + settings.AWX_CONTROL_NODE_TASK_IMPACT
|
control_impact = task.task_impact + settings.AWX_CONTROL_NODE_TASK_IMPACT
|
||||||
@@ -636,7 +634,7 @@ class TaskManager(TaskBase):
|
|||||||
found_acceptable_queue = True
|
found_acceptable_queue = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for instance_group in preferred_instance_groups:
|
for instance_group in self.instance_groups.get_instance_groups_from_task_cache(task):
|
||||||
if instance_group.is_container_group:
|
if instance_group.is_container_group:
|
||||||
self.start_task(task, instance_group, task.get_jobs_fail_chain(), None)
|
self.start_task(task, instance_group, task.get_jobs_fail_chain(), None)
|
||||||
found_acceptable_queue = True
|
found_acceptable_queue = True
|
||||||
|
|||||||
Reference in New Issue
Block a user