Struct aws_sdk_sagemaker::model::SecondaryStatusTransition
source · [−]#[non_exhaustive]pub struct SecondaryStatusTransition {
pub status: Option<SecondaryStatus>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub status_message: Option<String>,
}
Expand description
An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions
. It provides additional details about a status that the training job has transitioned through. A training job can be in one of several states, for example, starting, downloading, training, or uploading. Within each state, there are a number of intermediate states. For example, within the starting state, Amazon SageMaker could be starting the training job or launching the ML instances. These transitional states are referred to as the job's secondary status.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.status: Option<SecondaryStatus>
Contains a secondary status information from a training job.
Status might be one of the following secondary statuses:
- InProgress
-
-
Starting
- Starting the training job. -
Downloading
- An optional stage for algorithms that supportFile
training input mode. It indicates that data is being downloaded to the ML storage volumes. -
Training
- Training is in progress. -
Uploading
- Training is complete and the model artifacts are being uploaded to the S3 location.
-
- Completed
-
-
Completed
- The training job has completed.
-
- Failed
-
-
Failed
- The training job has failed. The reason for the failure is returned in theFailureReason
field ofDescribeTrainingJobResponse
.
-
- Stopped
-
-
MaxRuntimeExceeded
- The job stopped because it exceeded the maximum allowed runtime. -
Stopped
- The training job has stopped.
-
- Stopping
-
-
Stopping
- Stopping the training job.
-
We no longer support the following secondary statuses:
-
LaunchingMLInstances
-
PreparingTrainingStack
-
DownloadingTrainingImage
start_time: Option<DateTime>
A timestamp that shows when the training job transitioned to the current secondary status state.
end_time: Option<DateTime>
A timestamp that shows when the training job transitioned out of this secondary status state into another secondary status state or when the training job has ended.
status_message: Option<String>
A detailed description of the progress within a secondary status.
Amazon SageMaker provides secondary statuses and status messages that apply to each of them:
- Starting
-
-
Starting the training job.
-
Launching requested ML instances.
-
Insufficient capacity error from EC2 while launching instances, retrying!
-
Launched instance was unhealthy, replacing it!
-
Preparing the instances for training.
-
- Training
-
-
Downloading the training image.
-
Training image download completed. Training in progress.
-
Status messages are subject to change. Therefore, we recommend not including them in code that programmatically initiates actions. For examples, don't use status messages in if statements.
To have an overview of your training job's progress, view TrainingJobStatus
and SecondaryStatus
in DescribeTrainingJob
, and StatusMessage
together. For example, at the start of a training job, you might see the following:
-
TrainingJobStatus
- InProgress -
SecondaryStatus
- Training -
StatusMessage
- Downloading the training image
Implementations
sourceimpl SecondaryStatusTransition
impl SecondaryStatusTransition
sourcepub fn status(&self) -> Option<&SecondaryStatus>
pub fn status(&self) -> Option<&SecondaryStatus>
Contains a secondary status information from a training job.
Status might be one of the following secondary statuses:
- InProgress
-
-
Starting
- Starting the training job. -
Downloading
- An optional stage for algorithms that supportFile
training input mode. It indicates that data is being downloaded to the ML storage volumes. -
Training
- Training is in progress. -
Uploading
- Training is complete and the model artifacts are being uploaded to the S3 location.
-
- Completed
-
-
Completed
- The training job has completed.
-
- Failed
-
-
Failed
- The training job has failed. The reason for the failure is returned in theFailureReason
field ofDescribeTrainingJobResponse
.
-
- Stopped
-
-
MaxRuntimeExceeded
- The job stopped because it exceeded the maximum allowed runtime. -
Stopped
- The training job has stopped.
-
- Stopping
-
-
Stopping
- Stopping the training job.
-
We no longer support the following secondary statuses:
-
LaunchingMLInstances
-
PreparingTrainingStack
-
DownloadingTrainingImage
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
A timestamp that shows when the training job transitioned to the current secondary status state.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
A timestamp that shows when the training job transitioned out of this secondary status state into another secondary status state or when the training job has ended.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A detailed description of the progress within a secondary status.
Amazon SageMaker provides secondary statuses and status messages that apply to each of them:
- Starting
-
-
Starting the training job.
-
Launching requested ML instances.
-
Insufficient capacity error from EC2 while launching instances, retrying!
-
Launched instance was unhealthy, replacing it!
-
Preparing the instances for training.
-
- Training
-
-
Downloading the training image.
-
Training image download completed. Training in progress.
-
Status messages are subject to change. Therefore, we recommend not including them in code that programmatically initiates actions. For examples, don't use status messages in if statements.
To have an overview of your training job's progress, view TrainingJobStatus
and SecondaryStatus
in DescribeTrainingJob
, and StatusMessage
together. For example, at the start of a training job, you might see the following:
-
TrainingJobStatus
- InProgress -
SecondaryStatus
- Training -
StatusMessage
- Downloading the training image
sourceimpl SecondaryStatusTransition
impl SecondaryStatusTransition
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SecondaryStatusTransition
Trait Implementations
sourceimpl Clone for SecondaryStatusTransition
impl Clone for SecondaryStatusTransition
sourcefn clone(&self) -> SecondaryStatusTransition
fn clone(&self) -> SecondaryStatusTransition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SecondaryStatusTransition
impl Debug for SecondaryStatusTransition
sourceimpl PartialEq<SecondaryStatusTransition> for SecondaryStatusTransition
impl PartialEq<SecondaryStatusTransition> for SecondaryStatusTransition
sourcefn eq(&self, other: &SecondaryStatusTransition) -> bool
fn eq(&self, other: &SecondaryStatusTransition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SecondaryStatusTransition) -> bool
fn ne(&self, other: &SecondaryStatusTransition) -> bool
This method tests for !=
.
impl StructuralPartialEq for SecondaryStatusTransition
Auto Trait Implementations
impl RefUnwindSafe for SecondaryStatusTransition
impl Send for SecondaryStatusTransition
impl Sync for SecondaryStatusTransition
impl Unpin for SecondaryStatusTransition
impl UnwindSafe for SecondaryStatusTransition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more