mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02:30
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:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user