Skip to content

Commit

Permalink
Add timeout to scarf telemetry requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rojuinex committed Jan 7, 2025
1 parent 1a94d95 commit 6619d5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unstructured/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def scarf_analytics():
+ "&gpu="
+ str(gpu_present)
+ "&dev=true",
timeout=10,
)
else:
requests.get(
Expand All @@ -306,6 +307,7 @@ def scarf_analytics():
+ "&gpu="
+ str(gpu_present)
+ "&dev=false",
timeout=10,
)
except Exception:
pass
Expand Down

0 comments on commit 6619d5d

Please sign in to comment.