Enum JobStateTimeLimitActionsAction
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.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum JobStateTimeLimitActionsAction
Syntax (vb)
Public Enum JobStateTimeLimitActionsAction
Remarks
ExampleMetadata: infused
Examples
new JobQueue(this, "JobQueue", new JobQueueProps {
JobStateTimeLimitActions = new [] { new JobStateTimeLimitAction {
Action = JobStateTimeLimitActionsAction.CANCEL,
MaxTime = Duration.Minutes(10),
Reason = JobStateTimeLimitActionsReason.INSUFFICIENT_INSTANCE_CAPACITY,
State = JobStateTimeLimitActionsState.RUNNABLE
} }
});
Synopsis
Fields
| CANCEL | Cancel the job. |
| TERMINATE | Terminate the job. |
Fields
| Name | Description |
|---|---|
| CANCEL | Cancel the job. |
| TERMINATE | Terminate the job. |