Class: AWSCDK::Sagemaker::CfnProcessingJob::StoppingConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_processing_job.rb

Overview

Configures conditions under which the processing job should be stopped, such as how long the processing job has been running.

After the condition is met, the processing job is stopped.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_runtime_in_seconds:) ⇒ StoppingConditionProperty

Returns a new instance of StoppingConditionProperty.

Parameters:

  • max_runtime_in_seconds (Numeric)

    The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.



1690
1691
1692
1693
# File 'sagemaker/cfn_processing_job.rb', line 1690

def initialize(max_runtime_in_seconds:)
  @max_runtime_in_seconds = max_runtime_in_seconds
  Jsii::Type.check_type(@max_runtime_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxRuntimeInSeconds")
end

Instance Attribute Details

#max_runtime_in_secondsNumeric (readonly)

The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.



1705
1706
1707
# File 'sagemaker/cfn_processing_job.rb', line 1705

def max_runtime_in_seconds
  @max_runtime_in_seconds
end

Class Method Details

.jsii_propertiesObject



1707
1708
1709
1710
1711
# File 'sagemaker/cfn_processing_job.rb', line 1707

def self.jsii_properties
  {
    :max_runtime_in_seconds => "maxRuntimeInSeconds",
  }
end

Instance Method Details

#to_jsiiObject



1713
1714
1715
1716
1717
1718
1719
# File 'sagemaker/cfn_processing_job.rb', line 1713

def to_jsii
  result = {}
  result.merge!({
    "maxRuntimeInSeconds" => @max_runtime_in_seconds,
  })
  result.compact
end