JobStateTimeLimitActionsAction
- class aws_cdk.aws_batch.JobStateTimeLimitActionsAction(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
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.
- 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
- CANCEL
Cancel the job.