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:
Christian Gick
2026-03-19 10:07:20 +02:00
parent 3aac724627
commit 1d7730fbf7
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ async def _create_task(url: str, goal: str, extraction_goal: str = "",
if totp_identifier:
payload["totp_identifier"] = totp_identifier
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={
@@ -49,7 +49,7 @@ async def _create_task(url: str, goal: str, extraction_goal: str = "",
async def _poll_task(run_id: str) -> dict:
"""Poll Skyvern until task completes or times out."""
elapsed = 0
async with httpx.AsyncClient(timeout=15.0) as client:
async with httpx.AsyncClient(timeout=60.0) as client:
while elapsed < MAX_POLL_TIME:
resp = await client.get(
f"{SKYVERN_BASE_URL}/api/v1/tasks/{run_id}",