enum JobStateTimeLimitActionsReason
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Batch.JobStateTimeLimitActionsReason |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#JobStateTimeLimitActionsReason |
Java | software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason |
Python | aws_cdk.aws_batch.JobStateTimeLimitActionsReason |
TypeScript (source) | aws-cdk-lib » aws_batch » JobStateTimeLimitActionsReason |
The reason to log for the action being taken.
See also: https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable
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 |
|---|---|
| INSUFFICIENT_INSTANCE_CAPACITY | All connected compute environments have insufficient capacity errors. |
| COMPUTE_ENVIRONMENT_MAX_RESOURCE | All compute environments have a maxvCpus parameter that is smaller than the job requirements. |
| JOB_RESOURCE_REQUIREMENT | None of the compute environments have instances that meet the job requirements. |
INSUFFICIENT_INSTANCE_CAPACITY
All connected compute environments have insufficient capacity errors.
COMPUTE_ENVIRONMENT_MAX_RESOURCE
All compute environments have a maxvCpus parameter that is smaller than the job requirements.
JOB_RESOURCE_REQUIREMENT
None of the compute environments have instances that meet the job requirements.

.NET
Go
Java
Python
TypeScript (