Skip to content

Commit 5ed8357

Browse files
committed
update
1 parent 0555e6d commit 5ed8357

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

databricks/sdk/retries.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ def _backoff(attempt: int) -> float:
101101
return wait + jitter
102102

103103

104-
# This function is not meant to be used directly by users.
105-
# It is used internally by the SDK to poll for the result of an operation.
106-
# It can be changed in the future without any notice.
107104
def poll(
108105
fn: Callable[[], Tuple[Optional[T], Optional[RetryError]]],
109106
timeout: timedelta = timedelta(minutes=20),
@@ -112,6 +109,10 @@ def poll(
112109
"""Poll a function until it succeeds or times out.
113110
114111
The backoff is linear backoff and jitter.
112+
113+
This function is not meant to be used directly by users.
114+
It is used internally by the SDK to poll for the result of an operation.
115+
It can be changed in the future without any notice.
115116
116117
:param fn: Function that returns (result, error).
117118
Return (None, RetryError.continues("msg")) to continue polling.

0 commit comments

Comments
 (0)