Skip to content
v2.274.0

JobStateTimeLimitActionsAction 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.

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
CANCELCancel the job.
TERMINATETerminate the job.

Referenced by ​