Skip to content

Commit 6d2c183

Browse files
Add TODO
1 parent 21c797b commit 6d2c183

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

databricks/sdk/_base_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ def _perform(self,
270270
if error is not None:
271271
# If the request body is a seekable stream, rewind it so that it is ready
272272
# to be read again in case of a retry.
273+
#
274+
# TODO: This should be moved into a "before-retry" hook to avoid one
275+
# unnecessary seek on the last failed retry before aborting.
273276
if self._is_seekable_stream(data):
274277
data.seek(initial_data_position)
275278
raise error from None

0 commit comments

Comments
 (0)