add generate_script to the task v2 table (#3332)

This commit is contained in:
Shuchang Zheng
2025-08-31 15:08:01 +08:00
committed by GitHub
parent 494b009ef9
commit 687bf1e2c7
6 changed files with 51 additions and 0 deletions

View File

@@ -2273,6 +2273,7 @@ class WorkflowService:
proxy_location: ProxyLocation | None = None,
max_screenshot_scrolling_times: int | None = None,
extra_http_headers: dict[str, str] | None = None,
generate_script: bool = False,
status: WorkflowStatus = WorkflowStatus.published,
) -> Workflow:
"""
@@ -2289,6 +2290,7 @@ class WorkflowService:
status=status,
max_screenshot_scrolls=max_screenshot_scrolling_times,
extra_http_headers=extra_http_headers,
generate_script=generate_script,
)
return await app.WORKFLOW_SERVICE.create_workflow_from_request(
organization=organization,