File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/sagemaker/remote_function Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1045,25 +1045,28 @@ def cancel(self) -> bool:
1045
1045
return True
1046
1046
1047
1047
def running (self ) -> bool :
1048
- """
1048
+ """Check if the underlying sagemaker job is running.
1049
+
1049
1050
Returns:
1050
- ``True`` if the underlying sagemaker job is still running.
1051
+ ``True`` if the underlying sagemaker job is still running. ``False``, otherwise.
1051
1052
"""
1052
1053
with self ._condition :
1053
1054
return self ._state == _RUNNING
1054
1055
1055
1056
def cancelled (self ) -> bool :
1056
- """
1057
+ """Check if the underlying sagemaker job was cancelled.
1058
+
1057
1059
Returns:
1058
1060
``True`` if the underlying sagemaker job was cancelled. ``False``, otherwise.
1059
1061
"""
1060
1062
with self ._condition :
1061
1063
return self ._state == _CANCELLED
1062
1064
1063
1065
def done (self ) -> bool :
1064
- """
1066
+ """Check if the underlying sagemaker job is finished.
1067
+
1065
1068
Returns:
1066
- ``True`` if the underlying sagemaker job finished running.
1069
+ ``True`` if the underlying sagemaker job finished running. ``False``, otherwise.
1067
1070
"""
1068
1071
with self ._condition :
1069
1072
if self ._state == _RUNNING and self ._job .describe ()["TrainingJobStatus" ] in [
You can’t perform that action at this time.
0 commit comments