Skip to content

Commit 451ad97

Browse files
authored
Add timeout to scarf telemetry requests (#3792)
Resolves #3791 by setting a default timeout of 10 seconds.
1 parent 9d58b34 commit 451ad97

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Diff for: CHANGELOG.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
## 0.16.19-dev1
1+
## 0.16.19-dev2
22

33
### Enhancements
44

55
### Features
66

77
### Fixes
88
- **fix a bug where table extraction is skipped when it shouldn't**. Pages with just one table as its content or starts with a table misses table extraction. The routing logic is now fixed.
9-
10-
## 0.16.18-dev1
11-
12-
### Enhancements
13-
14-
### Features
15-
16-
### Fixes
179
- **Correct deprecated `ruff` invocation in `make tidy`**. This will future-proof it or avoid surprises if someone happens to upgrade Ruff.
1810
- **Remove upper bound constraint on python version** in setup.py. Python3.13 is not yet officially supported, but allow users to try.
1911

Diff for: unstructured/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.19-dev1" # pragma: no cover
1+
__version__ = "0.16.19-dev2" # pragma: no cover

Diff for: unstructured/utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def scarf_analytics():
292292
+ "&gpu="
293293
+ str(gpu_present)
294294
+ "&dev=true",
295+
timeout=10,
295296
)
296297
requests.get(
297298
"https://packages2.unstructured.io/python-telemetry?version="
@@ -305,6 +306,7 @@ def scarf_analytics():
305306
+ "&gpu="
306307
+ str(gpu_present)
307308
+ "&dev=true",
309+
timeout=10,
308310
)
309311
else:
310312
requests.get(
@@ -319,6 +321,7 @@ def scarf_analytics():
319321
+ "&gpu="
320322
+ str(gpu_present)
321323
+ "&dev=false",
324+
timeout=10,
322325
)
323326
requests.get(
324327
"https://packages2.unstructured.io/python-telemetry?version="
@@ -332,6 +335,7 @@ def scarf_analytics():
332335
+ "&gpu="
333336
+ str(gpu_present)
334337
+ "&dev=false",
338+
timeout=10,
335339
)
336340
except Exception:
337341
pass

0 commit comments

Comments
 (0)