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

@@ -422,6 +422,7 @@ class BaseTaskBlock(Block):
cache_actions: bool = False
complete_verification: bool = True
include_action_history_in_verification: bool = False
download_timeout: float | None = None # minutes
def get_all_parameters(
self,
@@ -631,6 +632,7 @@ class BaseTaskBlock(Block):
failure_reason=str(e),
)
raise e
try:
# add screenshot artifact for the first task
screenshot = await browser_state.take_fullpage_screenshot(

View File

@@ -2490,6 +2490,7 @@ class WorkflowService:
cache_actions=block_yaml.cache_actions,
complete_on_download=True,
complete_verification=True,
download_timeout=block_yaml.download_timeout,
)
elif block_yaml.block_type == BlockType.TaskV2:
return TaskV2Block(