From 3caac2ebde4d00d53f5a88c4caa2f3d3579e5bdc Mon Sep 17 00:00:00 2001 From: Jordan Homan Date: Thu, 24 Oct 2024 13:02:23 -0400 Subject: [PATCH] increase client timeout to 60 minutes --- src/unstructured_client/_hooks/custom/split_pdf_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unstructured_client/_hooks/custom/split_pdf_hook.py b/src/unstructured_client/_hooks/custom/split_pdf_hook.py index 954c85b9..7860d9bc 100644 --- a/src/unstructured_client/_hooks/custom/split_pdf_hook.py +++ b/src/unstructured_client/_hooks/custom/split_pdf_hook.py @@ -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)