Skip to content

Commit 5096ef0

Browse files
committed
Update docstring for make_request
Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent 38411a8 commit 5096ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/databricks/sql/thrift_backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def _handle_request_error(self, error_info, attempt, elapsed):
250250
# FUTURE: Consider moving to https://github.com/litl/backoff or
251251
# https://github.com/jd/tenacity for retry logic.
252252
def make_request(self, method, request):
253-
"""Execute given request, attempting retries when receiving HTTP 429/503.
253+
"""Execute given request, attempting retries when
254+
1. Receiving HTTP 429/503 from server
255+
2. OSError is raised during a GetOperationStatus
254256
255257
For delay between attempts, honor the given Retry-After header, but with bounds.
256258
Use lower bound of expontial-backoff based on _retry_delay_min,

0 commit comments

Comments
 (0)