datatoolpack 0.7.4__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/PKG-INFO +1 -1
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack/__init__.py +1 -1
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack/client.py +9 -4
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack.egg-info/PKG-INFO +1 -1
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/setup.py +1 -1
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/README.md +0 -0
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack.egg-info/SOURCES.txt +0 -0
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack.egg-info/dependency_links.txt +0 -0
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack.egg-info/requires.txt +0 -0
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/datatoolpack.egg-info/top_level.txt +0 -0
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/pyproject.toml +0 -0
- {datatoolpack-0.7.4 → datatoolpack-0.8.0}/setup.cfg +0 -0
|
@@ -74,7 +74,7 @@ class AutoDataClient:
|
|
|
74
74
|
Args:
|
|
75
75
|
api_key: API key string starting with ``dtpk_``.
|
|
76
76
|
base_url: Base URL of the AutoData server (no trailing slash).
|
|
77
|
-
timeout: HTTP request timeout in seconds (default
|
|
77
|
+
timeout: HTTP request timeout in seconds (default 300).
|
|
78
78
|
max_retries: Max automatic retries for transient errors
|
|
79
79
|
(429 / 502 / 503 / 504). Default 3.
|
|
80
80
|
|
|
@@ -89,7 +89,7 @@ class AutoDataClient:
|
|
|
89
89
|
api_key: Optional[str] = None,
|
|
90
90
|
passcode: Optional[str] = None,
|
|
91
91
|
base_url: Optional[str] = None,
|
|
92
|
-
timeout: int =
|
|
92
|
+
timeout: int = 300,
|
|
93
93
|
max_retries: int = 3,
|
|
94
94
|
):
|
|
95
95
|
# Resolve from env vars if not provided explicitly
|
|
@@ -195,7 +195,10 @@ class AutoDataClient:
|
|
|
195
195
|
return response # let caller handle the error
|
|
196
196
|
retry_after = int(response.headers.get("Retry-After", 0))
|
|
197
197
|
wait = max(retry_after, 2 ** attempt)
|
|
198
|
-
except requests.ConnectionError as exc:
|
|
198
|
+
except (requests.ConnectionError, requests.Timeout) as exc:
|
|
199
|
+
# Retry transient read/connect timeouts too: a long-running
|
|
200
|
+
# server-side stage can briefly delay a poll past the per-request
|
|
201
|
+
# timeout; that should not fail the whole job.
|
|
199
202
|
last_exc = exc
|
|
200
203
|
if attempt == self.max_retries:
|
|
201
204
|
raise
|
|
@@ -364,7 +367,7 @@ class AutoDataClient:
|
|
|
364
367
|
session_id: str,
|
|
365
368
|
poll_interval: int = 2,
|
|
366
369
|
timeout: Optional[float] = None,
|
|
367
|
-
stall_timeout: float =
|
|
370
|
+
stall_timeout: float = 3600.0,
|
|
368
371
|
) -> Dict:
|
|
369
372
|
"""Block until a session reaches *completed*, *error*, or *cancelled*.
|
|
370
373
|
|
|
@@ -405,6 +408,8 @@ class AutoDataClient:
|
|
|
405
408
|
raise AutoDataError(f"Processing failed: {msg}")
|
|
406
409
|
if status == "cancelled":
|
|
407
410
|
raise AutoDataError("Processing was cancelled")
|
|
411
|
+
if status == "failed":
|
|
412
|
+
raise AutoDataError(f"Processing failed: {msg}")
|
|
408
413
|
|
|
409
414
|
# Detect stalled workers: status stays 'unknown'/'processing' with
|
|
410
415
|
# no progress change. Prevents infinite loops when cpu_worker died.
|
|
@@ -7,7 +7,7 @@ with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="datatoolpack",
|
|
10
|
-
version="0.
|
|
10
|
+
version="0.8.0",
|
|
11
11
|
description="Official Python SDK for the AutoData ML data preparation pipeline API",
|
|
12
12
|
long_description=long_description,
|
|
13
13
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|