enum JobStateTimeLimitActionsAction
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Batch.JobStateTimeLimitActionsAction |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#JobStateTimeLimitActionsAction |
Java | software.amazon.awscdk.services.batch.JobStateTimeLimitActionsAction |
Python | aws_cdk.aws_batch.JobStateTimeLimitActionsAction |
TypeScript (source) | aws-cdk-lib » aws_batch » JobStateTimeLimitActionsAction |
The action to take when a job is at the head of the job queue in the specified state for the specified period of time.
Example
new batch.JobQueue(this, 'JobQueue', {
jobStateTimeLimitActions: [
{
action: batch.JobStateTimeLimitActionsAction.CANCEL,
maxTime: cdk.Duration.minutes(10),
reason: batch.JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY,
state: batch.JobStateTimeLimitActionsState.RUNNABLE,
},
]
});
Members
| Name | Description |
|---|---|
| CANCEL | Cancel the job. |
| TERMINATE | Terminate the job. |
CANCEL
Cancel the job.
TERMINATE
Terminate the job.

.NET
Go
Java
Python
TypeScript (