fix: increase httpx timeout to 60s for Skyvern API calls
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,7 @@ async def execute_skyvern(config: dict, send_text=None, target_room: str = "", *
|
||||
"x-api-key": SKYVERN_API_KEY,
|
||||
}
|
||||
|
||||
async with httpx.AsyncClient(timeout=30.0) as client:
|
||||
async with httpx.AsyncClient(timeout=60.0) as client:
|
||||
resp = await client.post(
|
||||
f"{SKYVERN_BASE_URL}/api/v1/tasks",
|
||||
headers=headers,
|
||||
@@ -77,7 +77,7 @@ async def execute_skyvern(config: dict, send_text=None, target_room: str = "", *
|
||||
|
||||
# Poll for completion
|
||||
elapsed = 0
|
||||
async with httpx.AsyncClient(timeout=15.0) as client:
|
||||
async with httpx.AsyncClient(timeout=60.0) as client:
|
||||
while elapsed < max_poll:
|
||||
resp = await client.get(
|
||||
f"{SKYVERN_BASE_URL}/api/v1/tasks/{run_id}",
|
||||
|
||||
Reference in New Issue
Block a user