JobStateTimeLimitAction - AWS Batch

JobStateTimeLimitAction

Specifies an action that AWS Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.

Contents

action

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. The only supported value is CANCEL, which will cancel the job.

Type: String

Valid Values: CANCEL

Required: Yes

maxTimeSeconds

The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).

Type: Integer

Required: Yes

reason

The reason to log for the action being taken.

Type: String

Required: Yes

state

The state of the job needed to trigger the action. The only supported value is RUNNABLE.

Type: String

Valid Values: RUNNABLE

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: