Struct aws_sdk_sagemaker::types::builders::StoppingConditionBuilder
source · #[non_exhaustive]pub struct StoppingConditionBuilder { /* private fields */ }
Expand description
A builder for StoppingCondition
.
Implementations§
source§impl StoppingConditionBuilder
impl StoppingConditionBuilder
sourcepub fn max_runtime_in_seconds(self, input: i32) -> Self
pub fn max_runtime_in_seconds(self, input: i32) -> Self
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.
sourcepub fn set_max_runtime_in_seconds(self, input: Option<i32>) -> Self
pub fn set_max_runtime_in_seconds(self, input: Option<i32>) -> Self
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.
sourcepub fn get_max_runtime_in_seconds(&self) -> &Option<i32>
pub fn get_max_runtime_in_seconds(&self) -> &Option<i32>
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.
sourcepub fn max_wait_time_in_seconds(self, input: i32) -> Self
pub fn max_wait_time_in_seconds(self, input: i32) -> Self
The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds
. If the job does not complete during this time, SageMaker ends the job.
When RetryStrategy
is specified in the job request, MaxWaitTimeInSeconds
specifies the maximum time for all of the attempts in total, not each individual attempt.
sourcepub fn set_max_wait_time_in_seconds(self, input: Option<i32>) -> Self
pub fn set_max_wait_time_in_seconds(self, input: Option<i32>) -> Self
The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds
. If the job does not complete during this time, SageMaker ends the job.
When RetryStrategy
is specified in the job request, MaxWaitTimeInSeconds
specifies the maximum time for all of the attempts in total, not each individual attempt.
sourcepub fn get_max_wait_time_in_seconds(&self) -> &Option<i32>
pub fn get_max_wait_time_in_seconds(&self) -> &Option<i32>
The maximum length of time, in seconds, that a managed Spot training job has to complete. It is the amount of time spent waiting for Spot capacity plus the amount of time the job can run. It must be equal to or greater than MaxRuntimeInSeconds
. If the job does not complete during this time, SageMaker ends the job.
When RetryStrategy
is specified in the job request, MaxWaitTimeInSeconds
specifies the maximum time for all of the attempts in total, not each individual attempt.
sourcepub fn max_pending_time_in_seconds(self, input: i32) -> Self
pub fn max_pending_time_in_seconds(self, input: i32) -> Self
The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.
sourcepub fn set_max_pending_time_in_seconds(self, input: Option<i32>) -> Self
pub fn set_max_pending_time_in_seconds(self, input: Option<i32>) -> Self
The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.
sourcepub fn get_max_pending_time_in_seconds(&self) -> &Option<i32>
pub fn get_max_pending_time_in_seconds(&self) -> &Option<i32>
The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.
sourcepub fn build(self) -> StoppingCondition
pub fn build(self) -> StoppingCondition
Consumes the builder and constructs a StoppingCondition
.
Trait Implementations§
source§impl Clone for StoppingConditionBuilder
impl Clone for StoppingConditionBuilder
source§fn clone(&self) -> StoppingConditionBuilder
fn clone(&self) -> StoppingConditionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StoppingConditionBuilder
impl Debug for StoppingConditionBuilder
source§impl Default for StoppingConditionBuilder
impl Default for StoppingConditionBuilder
source§fn default() -> StoppingConditionBuilder
fn default() -> StoppingConditionBuilder
source§impl PartialEq for StoppingConditionBuilder
impl PartialEq for StoppingConditionBuilder
source§fn eq(&self, other: &StoppingConditionBuilder) -> bool
fn eq(&self, other: &StoppingConditionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.