mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
like inventory updates, check if project update deps already processed
This commit is contained in:
@@ -83,6 +83,11 @@ class DependencyGraph(object):
|
|||||||
'''
|
'''
|
||||||
def should_update_related_project(self, job):
|
def should_update_related_project(self, job):
|
||||||
now = self.get_now()
|
now = self.get_now()
|
||||||
|
|
||||||
|
# Already processed dependencies for this job
|
||||||
|
if job.data['dependent_jobs__id'] is not None:
|
||||||
|
return False
|
||||||
|
|
||||||
latest_project_update = self.data[self.LATEST_PROJECT_UPDATES].get(job['project_id'], None)
|
latest_project_update = self.data[self.LATEST_PROJECT_UPDATES].get(job['project_id'], None)
|
||||||
if not latest_project_update:
|
if not latest_project_update:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user