mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
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:
parent
03249e59f3
commit
1dc3aa8ab1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user