Class: Aws::Batch::Types::JobStateTimeLimitAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb

Overview

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

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. For job queues connected to a ECS, FARGATE or EKS compute environment, the only supported value is CANCEL, which will cancel the job. For job queues connected to a SAGEMAKER_TRAINING service environment, the only supported value is TERMINATE, which will terminate the job.

Returns:

  • (String)


6649
6650
6651
6652
6653
6654
6655
6656
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 6649

class JobStateTimeLimitAction < Struct.new(
  :reason,
  :state,
  :max_time_seconds,
  :action)
  SENSITIVE = []
  include Aws::Structure
end

#max_time_secondsInteger

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

Returns:

  • (Integer)


6649
6650
6651
6652
6653
6654
6655
6656
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 6649

class JobStateTimeLimitAction < Struct.new(
  :reason,
  :state,
  :max_time_seconds,
  :action)
  SENSITIVE = []
  include Aws::Structure
end

#reasonString

The reason to log for the action being taken.

Returns:

  • (String)


6649
6650
6651
6652
6653
6654
6655
6656
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 6649

class JobStateTimeLimitAction < Struct.new(
  :reason,
  :state,
  :max_time_seconds,
  :action)
  SENSITIVE = []
  include Aws::Structure
end

#stateString

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

Returns:

  • (String)


6649
6650
6651
6652
6653
6654
6655
6656
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 6649

class JobStateTimeLimitAction < Struct.new(
  :reason,
  :state,
  :max_time_seconds,
  :action)
  SENSITIVE = []
  include Aws::Structure
end