Skip to content
v2.275.0

JobStateTimeLimitActionsState Enum ​

The state of the job needed to trigger the action.

Example ​

ts
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 ​

MemberDescription
RUNNABLERUNNABLE state triggers the action.

Referenced by ​