make browser download timeout configurable for blocks and tasks (#3619)

This commit is contained in:
Jonathan Dobson
2025-10-06 11:09:20 -04:00
committed by GitHub
parent a9d0280336
commit a758b03861
11 changed files with 60 additions and 5 deletions

View File

@@ -113,6 +113,11 @@ class TaskBase(BaseModel):
description="The CDP address for the task.",
examples=["http://127.0.0.1:9222", "ws://127.0.0.1:9222/devtools/browser/1234567890"],
)
download_timeout: float | None = Field(
default=None,
description="The maximum time to wait for downloads to complete, in minutes. If not set, defaults to BROWSER_DOWNLOAD_TIMEOUT minutes.",
examples=[15.0],
)
class TaskRequest(TaskBase):