Skip to content

Commit 927b1b8

Browse files
committed
fix: update timeout for long-term response
1 parent d0e3041 commit 927b1b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/emd/cfn/shared/ecs_cluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Resources:
5252
Scheme: internet-facing
5353
LoadBalancerAttributes:
5454
- Key: idle_timeout.timeout_seconds
55-
Value: '30'
55+
Value: '300'
5656
Subnets: !Ref Subnets
5757
SecurityGroups:
5858
- !Ref PublicLoadBalancerSecurityGroup

src/emd/models/frameworks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class FastAPIFramework(Framework):
66
limit_concurrency: int = 1000
7-
timeout_keep_alive: int = 60
7+
timeout_keep_alive: int = 300
88
uvicorn_log_level: str = "info"
99

1010

@@ -14,7 +14,7 @@ class FastAPIFramework(Framework):
1414
description="FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.",
1515
framework_type=FrameworkType.FASTAPI,
1616
limit_concurrency = 1000,
17-
timeout_keep_alive = 60,
17+
timeout_keep_alive = 300,
1818
uvicorn_log_level = "info"
1919
)
2020

src/pipeline/backend/comfyui/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import uvicorn
1717
from fastapi import APIRouter, FastAPI, Request, HTTPException
1818

19-
TIMEOUT_KEEP_ALIVE = 30
19+
TIMEOUT_KEEP_ALIVE = 300
2020
SAGEMAKER_PORT = 8080
2121
LOCALHOST = '0.0.0.0'
2222
PHY_LOCALHOST = '127.0.0.1'

0 commit comments

Comments
 (0)