Skip to content

Commit 33729b1

Browse files
authored
Add summary to waiter method
1 parent 569f495 commit 33729b1

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
@@ -4631,14 +4631,15 @@ def _wait_until_training_done(callable_fn, desc, poll=5):
46314631

46324632

46334633
def _wait_until(callable_fn, poll_seconds=5, timeout_seconds=None):
4634-
"""
4634+
"""Method to allow waiting for function execution to complete.
4635+
46354636
Args:
4636-
callable_fn: callable to wait for which returns None to keep polling
4637-
poll_seconds (float): time to sleep between calls to callable_fn
4637+
callable_fn: callable to wait for which returns None to keep polling.
4638+
poll_seconds (float): time to sleep between calls to callable_fn.
46384639
timeout_seconds (float): Optional stop polling after timeout_seconds elapsed.
46394640
46404641
Returns:
4641-
Result of the callable_fn
4642+
Result of the callable_fn.
46424643
"""
46434644
waited_seconds = 0.0
46444645
last_time = time.time()

0 commit comments

Comments
 (0)