JobStateTimeLimitActionsReason
- class aws_cdk.aws_batch.JobStateTimeLimitActionsReason(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The reason to log for the action being taken.
- See:
- ExampleMetadata:
infused
Example:
batch.JobQueue(self, "JobQueue", job_state_time_limit_actions=[batch.JobStateTimeLimitAction( action=batch.JobStateTimeLimitActionsAction.CANCEL, max_time=cdk.Duration.minutes(10), reason=batch.JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY, state=batch.JobStateTimeLimitActionsState.RUNNABLE ) ] )
Attributes
- COMPUTE_ENVIRONMENT_MAX_RESOURCE
All compute environments have a maxvCpus parameter that is smaller than the job requirements.
- INSUFFICIENT_INSTANCE_CAPACITY
All connected compute environments have insufficient capacity errors.
- JOB_RESOURCE_REQUIREMENT
None of the compute environments have instances that meet the job requirements.