cancel job also cancels project update

related to #4225
This commit is contained in:
Chris Meyers
2016-12-14 16:26:18 -05:00
parent b533a9eb7b
commit bdfac35f3f
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):
'''