Skip to content

Commit 3ec8007

Browse files
shreyapanditlarroy
authored andcommitted
Add summary to waiter method
1 parent 7f78ab8 commit 3ec8007

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sagemaker/session.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -4710,14 +4710,15 @@ def _wait_until_training_done(callable_fn, desc, poll=5):
47104710

47114711

47124712
def _wait_until(callable_fn, poll_seconds=5, timeout_seconds=None):
4713-
"""
4713+
"""Method to allow waiting for function execution to complete.
4714+
47144715
Args:
4715-
callable_fn: callable to wait for which returns None to keep polling
4716-
poll_seconds (float): time to sleep between calls to callable_fn
4716+
callable_fn: callable to wait for which returns None to keep polling.
4717+
poll_seconds (float): time to sleep between calls to callable_fn.
47174718
timeout_seconds (float): Optional stop polling after timeout_seconds elapsed.
47184719
47194720
Returns:
4720-
Result of the callable_fn
4721+
Result of the callable_fn.
47214722
"""
47224723
waited_seconds = 0.0
47234724
last_time = time.time()

0 commit comments

Comments
 (0)