Skip to content

Commit 814b6ee

Browse files
Dipankar Patrodpatro
authored andcommitted
address check failure
1 parent c498132 commit 814b6ee

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/sagemaker/remote_function/client.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,25 +1045,28 @@ def cancel(self) -> bool:
10451045
return True
10461046

10471047
def running(self) -> bool:
1048-
"""
1048+
"""Check if the underlying sagemaker job is running.
1049+
10491050
Returns:
1050-
``True`` if the underlying sagemaker job is still running.
1051+
``True`` if the underlying sagemaker job is still running. ``False``, otherwise.
10511052
"""
10521053
with self._condition:
10531054
return self._state == _RUNNING
10541055

10551056
def cancelled(self) -> bool:
1056-
"""
1057+
"""Check if the underlying sagemaker job was cancelled.
1058+
10571059
Returns:
10581060
``True`` if the underlying sagemaker job was cancelled. ``False``, otherwise.
10591061
"""
10601062
with self._condition:
10611063
return self._state == _CANCELLED
10621064

10631065
def done(self) -> bool:
1064-
"""
1066+
"""Check if the underlying sagemaker job is finished.
1067+
10651068
Returns:
1066-
``True`` if the underlying sagemaker job finished running.
1069+
``True`` if the underlying sagemaker job finished running. ``False``, otherwise.
10671070
"""
10681071
with self._condition:
10691072
if self._state == _RUNNING and self._job.describe()["TrainingJobStatus"] in [

0 commit comments

Comments
 (0)