Merge pull request #4445 from chrismeyersfsu/fix-4225

cancel job also cancels project update
This commit is contained in:
Chris Meyers
2016-12-15 08:46:43 -05:00
committed by GitHub
2 changed files with 22 additions and 7 deletions

View File

@@ -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):
'''