Terminates a job in a job queue. Jobs that are in the STARTING
or RUNNING
state are terminated, which causes them to transition to FAILED
. Jobs that have not progressed to the STARTING
state are cancelled.
See https://www.paws-r-sdk.com/docs/batch_terminate_job/ for full documentation.
batch_terminate_job(jobId, reason)
[required] The Batch job ID of the job to terminate.
[required] A message to attach to the job that explains the reason for canceling
it. This message is returned by future
describe_jobs
operations on the job. This
message is also recorded in the Batch activity logs.