Called terminatejob from canceljob
This commit is contained in:
parent
629503398c
commit
ca3a3633e9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user