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:
parent
82be0a8af2
commit
9288b53015
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user