1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

cascade cancel proj update when job canceled

* Implicit project update, launch_type='sync', get "associated" with a
job via project_update. When a job is canceled, so should this implicit
project update. This change enforces that logic.
This commit is contained in:
Chris Meyers 2017-11-15 10:50:58 -05:00
parent 82be0a8af2
commit 9288b53015

View File

@ -318,6 +318,9 @@ class TaskManagerJobMixin(TaskManagerUnifiedJobMixin):
class Meta:
abstract = True
def get_jobs_fail_chain(self):
return [self.project_update] if self.project_update else []
def dependent_jobs_finished(self):
for j in self.dependent_jobs.all():
if j.status in ['pending', 'waiting', 'running']: