make browser download timeout configurable for blocks and tasks (#3619)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user