1
0
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:
Matthew Jones 2014-03-25 16:20:27 -04:00
parent 03249e59f3
commit 1dc3aa8ab1

View File

@ -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: