mirror of
https://github.com/ansible/awx.git
synced 2026-08-03 03:19:57 -02:30
Merge pull request #4445 from chrismeyersfsu/fix-4225
cancel job also cancels project update
This commit is contained in:
@@ -654,6 +654,15 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin):
|
||||
def get_notification_friendly_name(self):
|
||||
return "Job"
|
||||
|
||||
'''
|
||||
Canceling a job also cancels the implicit project update with launch_type
|
||||
run.
|
||||
'''
|
||||
def cancel(self):
|
||||
res = super(Job, self).cancel()
|
||||
if self.project_update:
|
||||
self.project_update.cancel()
|
||||
return res
|
||||
|
||||
class JobHostSummary(CreatedModifiedModel):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user