enum JobStateTimeLimitActionsReason
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.JobStateTimeLimitActionsReason |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#JobStateTimeLimitActionsReason |
![]() | software.amazon.awscdk.services.batch.JobStateTimeLimitActionsReason |
![]() | aws_cdk.aws_batch.JobStateTimeLimitActionsReason |
![]() | aws-cdk-lib » aws_batch » JobStateTimeLimitActionsReason |
The reason to log for the action being taken.
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.