Skip to content

Commit ee01652

Browse files
author
Dipankar Patro
committed
address PR feedback
1 parent fe6cddf commit ee01652

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/sagemaker/remote_function/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def remote(
8787
This decorator wraps the annotated code and runs it as a new SageMaker job synchronously
8888
with the provided runtime settings.
8989
90-
In case a parameter value is not set, the decorator first looks up the value from the SageMaker
90+
If a parameter value is not set, the decorator first looks up the value from the SageMaker
9191
configuration file. If no value is specified in the configuration file or no configuration file
9292
is found, the decorator selects the default as specified below. For more information, see
9393
`Configuring and using defaults with the SageMaker Python SDK <https://sagemaker.readthedocs.io/
@@ -475,7 +475,7 @@ def __init__(
475475
):
476476
"""Constructor for RemoteExecutor
477477
478-
In case a parameter value is not set, the constructor first looks up the value from the
478+
If a parameter value is not set, the constructor first looks up the value from the
479479
SageMaker configuration file. If no value is specified in the configuration file or
480480
no configuration file is found, the constructor selects the default as specified below.
481481
For more information, see `Configuring and using defaults with the SageMaker Python SDK
@@ -1045,28 +1045,28 @@ def cancel(self) -> bool:
10451045
return True
10461046

10471047
def running(self) -> bool:
1048-
"""Check if the underlying sagemaker job is running.
1048+
"""Check if the underlying SageMaker job is running.
10491049
10501050
Returns:
1051-
``True`` if the underlying sagemaker job is still running. ``False``, otherwise.
1051+
``True`` if the underlying SageMaker job is still running. ``False``, otherwise.
10521052
"""
10531053
with self._condition:
10541054
return self._state == _RUNNING
10551055

10561056
def cancelled(self) -> bool:
1057-
"""Check if the underlying sagemaker job was cancelled.
1057+
"""Check if the underlying SageMaker job was cancelled.
10581058
10591059
Returns:
1060-
``True`` if the underlying sagemaker job was cancelled. ``False``, otherwise.
1060+
``True`` if the underlying SageMaker job was cancelled. ``False``, otherwise.
10611061
"""
10621062
with self._condition:
10631063
return self._state == _CANCELLED
10641064

10651065
def done(self) -> bool:
1066-
"""Check if the underlying sagemaker job is finished.
1066+
"""Check if the underlying SageMaker job is finished.
10671067
10681068
Returns:
1069-
``True`` if the underlying sagemaker job finished running. ``False``, otherwise.
1069+
``True`` if the underlying SageMaker job finished running. ``False``, otherwise.
10701070
"""
10711071
with self._condition:
10721072
if self._state == _RUNNING and self._job.describe()["TrainingJobStatus"] in [

0 commit comments

Comments
 (0)