From 6619d5de1acad960818a2bba559c38362b1e409f Mon Sep 17 00:00:00 2001 From: Caleb Bartholomew <2524890+Rojuinex@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:43:40 -0700 Subject: [PATCH] Add timeout to scarf telemetry requests --- unstructured/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unstructured/utils.py b/unstructured/utils.py index 523fcd4a01..f83f8831a2 100644 --- a/unstructured/utils.py +++ b/unstructured/utils.py @@ -292,6 +292,7 @@ def scarf_analytics(): + "&gpu=" + str(gpu_present) + "&dev=true", + timeout=10, ) else: requests.get( @@ -306,6 +307,7 @@ def scarf_analytics(): + "&gpu=" + str(gpu_present) + "&dev=false", + timeout=10, ) except Exception: pass