Skip to content

Commit

Permalink
increase client timeout to 60 minutes (#198)
Browse files Browse the repository at this point in the history
### Notes
Increased the default timeout for partition calls to 60 minutes.
  • Loading branch information
jordan-homan authored Oct 25, 2024
1 parent e1e2a1b commit 4d07f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unstructured_client/_hooks/custom/split_pdf_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def before_request(
# Use a variable to adjust the httpx client timeout, or default to 30 minutes
# When we're able to reuse the SDK to make these calls, we can remove this var
# The SDK timeout will be controlled by parameter
client_timeout_minutes = 30
client_timeout_minutes = 60
if timeout_var := os.getenv("UNSTRUCTURED_CLIENT_TIMEOUT_MINUTES"):
client_timeout_minutes = int(timeout_var)

Expand Down

0 comments on commit 4d07f22

Please sign in to comment.