We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d68747c commit 86f4c72Copy full SHA for 86f4c72
openeo/rest/connection.py
@@ -46,6 +46,7 @@
46
OidcResourceOwnerPasswordAuthenticator,
47
)
48
from openeo.rest.datacube import DataCube, InputDate
49
+from openeo.rest.http import requests_with_retry
50
from openeo.rest.job import BatchJob, RESTJob
51
from openeo.rest.mlmodel import MlModel
52
from openeo.rest.rest_capabilities import RESTCapabilities
@@ -85,7 +86,8 @@ def __init__(
85
86
):
87
self._root_url = root_url
88
self.auth = auth or NullAuth()
- self.session = session or requests.Session()
89
+ # TODO: #441 [WIP] Add requests_with_retry here to the session?
90
+ self.session = session or requests_with_retry()
91
self.default_timeout = default_timeout or DEFAULT_TIMEOUT
92
self.default_headers = {
93
"User-Agent": "openeo-python-client/{cv} {py}/{pv} {pl}".format(
0 commit comments