Skip to content

Commit 4c935b3

Browse files
authored
Merge pull request #43 from michalc/default-httpx-client-retry
feat: by default retry connections in non-multi client
2 parents a0d57d1 + 2a11f0c commit 4c935b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlite_s3_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def sqlite_s3_query(url, get_credentials=lambda now: (
384384
os.environ['AWS_ACCESS_KEY_ID'],
385385
os.environ['AWS_SECRET_ACCESS_KEY'],
386386
os.environ.get('AWS_SESSION_TOKEN'), # Only needed for temporary credentials
387-
), get_http_client=lambda: httpx.Client(),
387+
), get_http_client=lambda: httpx.Client(transport=httpx.HTTPTransport(retries=3)),
388388
get_libsqlite3=lambda: cdll.LoadLibrary(find_library('sqlite3'))):
389389

390390
@contextmanager

0 commit comments

Comments
 (0)