Skip to content

Commit 1ccb48f

Browse files
author
Bob Strahan
committed
increase read timeout for bedrock client, to avoid Read timeout on endpoint URL exceptions
1 parent ed827ec commit 1ccb48f

File tree

1 file changed

+1
-1
lines changed
  • lib/idp_common_pkg/idp_common/bedrock

1 file changed

+1
-1
lines changed

lib/idp_common_pkg/idp_common/bedrock/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def client(self):
7676
"""Lazy-loaded Bedrock client."""
7777
config = Config(
7878
connect_timeout=10,
79-
read_timeout=120
79+
read_timeout=300 # allow plenty of time for large extraction or assessment inferences
8080
)
8181
if self._client is None:
8282
self._client = boto3.client('bedrock-runtime', region_name=self.region, config=config)

0 commit comments

Comments
 (0)