mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Relax job dependency conflicts raised by customer support
If both jobs are callbacks whose limits are different allow them to not conflict with each other when deciding launch dependencies
This commit is contained in:
@@ -247,6 +247,9 @@ class Job(UnifiedJob, JobOptions):
|
||||
from awx.main.models import InventoryUpdate, ProjectUpdate
|
||||
if type(obj) == Job:
|
||||
if obj.job_template == self.job_template:
|
||||
if obj.launch_type == 'callback' and self.launch_type == 'callback':
|
||||
if obj.limit != self.limit:
|
||||
return False
|
||||
return True
|
||||
return False
|
||||
if type(obj) == InventoryUpdate:
|
||||
|
||||
Reference in New Issue
Block a user