Called terminatejob from canceljob

This commit is contained in:
Terry Cain 2017-10-22 13:36:23 +01:00
parent 629503398c
commit ca3a3633e9
No known key found for this signature in database
GPG Key ID: 14D90844E4E9B9F3

View File

@ -293,12 +293,4 @@ class BatchResponse(BaseResponse):
# CancelJob
def canceljob(self): # Theres some AWS semantics on the differences but for us they're identical ;-)
job_id = self._get_param('jobId')
reason = self._get_param('reason')
try:
self.batch_backend.terminate_job(job_id, reason)
except AWSError as err:
return err.response()
return ''
return self.terminatejob()