Skip to content

Add tcp_keepalive=True and set read_timeout=3600 for video processing #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dennisheitmann
Copy link

Description of changes:

Add tcp_keepalive=True and read_timeout=3600 to prevent timeouts when using NOVA models with larger videos.

The timeout value of 3600s is recommended by: https://docs.aws.amazon.com/nova/latest/userguide/using-invoke-api.html

The timeout period for inference calls to Amazon Nova is 60 minutes. By default, AWS SDK clients timeout after 1 minute. We recommend that you increase the read timeout period of your AWS SDK client to at least 60 minutes. For example, in the AWS Python botocore SDK, change the value of the read_timeoutfield in botocore.config to at least 3600.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add tcp_keepalive and read_timeout to prevent timeouts when using NOVA models with larger videos
@gowthamshankar99 gowthamshankar99 self-requested a review June 20, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant