Skip to content

Commit 0783676

Browse files
Increased boto's read timeout to 10 mins.
1 parent 54a2fa9 commit 0783676

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fmcore/algorithm/bedrock.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
TextGenerationParams,
3737
TextGenerationParamsMapper,
3838
)
39+
from botocore.config import Config as BotoConfig
3940

4041

4142
class ConfigSelectionStrategy(AutoEnum):
@@ -711,6 +712,7 @@ def refresh_session(self):
711712
self.bedrock_client = self.boto3_session.client(
712713
service_name="bedrock-runtime",
713714
region_name=self.current_account_config.region_name,
715+
config=BotoConfig(read_timeout=60 * 10),
714716
)
715717

716718
def cleanup(self):

0 commit comments

Comments
 (0)