Skip to content

Commit 3a3a3d5

Browse files
shreyapanditlarroy
authored andcommitted
Add summary to waiter method
1 parent b941b9f commit 3a3a3d5

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

46654665

46664666
def _wait_until(callable_fn, poll_seconds=5, timeout_seconds=None):
4667-
"""
4667+
"""Method to allow waiting for function execution to complete.
4668+
46684669
Args:
4669-
callable_fn: callable to wait for which returns None to keep polling
4670-
poll_seconds (float): time to sleep between calls to callable_fn
4670+
callable_fn: callable to wait for which returns None to keep polling.
4671+
poll_seconds (float): time to sleep between calls to callable_fn.
46714672
timeout_seconds (float): Optional stop polling after timeout_seconds elapsed.
46724673
46734674
Returns:
4674-
Result of the callable_fn
4675+
Result of the callable_fn.
46754676
"""
46764677
waited_seconds = 0.0
46774678
last_time = time.time()

0 commit comments

Comments
 (0)