JobStateTimeLimitActionsState
- class aws_cdk.aws_batch.JobStateTimeLimitActionsState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The state of the job needed to trigger the action.
- 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
- RUNNABLE
RUNNABLE state triggers the action.