mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 13:10:11 -03:30
Merge pull request #6274 from chrismeyersfsu/fix-scheduler_update_on_launch
only consider update_on_launch inventory sources
This commit is contained in:
@@ -125,7 +125,7 @@ class TaskManager():
|
|||||||
for task in all_sorted_tasks:
|
for task in all_sorted_tasks:
|
||||||
if isinstance(task, Job):
|
if isinstance(task, Job):
|
||||||
inventory_ids.add(task.inventory_id)
|
inventory_ids.add(task.inventory_id)
|
||||||
return [invsrc for invsrc in InventorySource.objects.filter(inventory_id__in=inventory_ids)]
|
return [invsrc for invsrc in InventorySource.objects.filter(inventory_id__in=inventory_ids, update_on_launch=True)]
|
||||||
|
|
||||||
def spawn_workflow_graph_jobs(self, workflow_jobs):
|
def spawn_workflow_graph_jobs(self, workflow_jobs):
|
||||||
for workflow_job in workflow_jobs:
|
for workflow_job in workflow_jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user