# JobStateTimeLimitActionsState

The state of the job needed to trigger the action.

- Source: [`aws-batch/lib/job-queue.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-batch/lib/job-queue.ts#L234)
- Type last changed: v2.143.0 · 24 May 2024

## 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

| Member | Description |
| --- | --- |
| `RUNNABLE` | RUNNABLE state triggers the action. |

## Referenced by

- [`JobStateTimeLimitAction`](/v2/docs/aws-cdk-lib.aws_batch.JobStateTimeLimitAction).state
