fix workflow_runs.code_gen to enforce code generate only for task v2 block run (#3597)

This commit is contained in:
Shuchang Zheng
2025-10-02 16:06:54 -07:00
committed by GitHub
parent a7025fc9b7
commit 7e5c4b3a03
14 changed files with 53 additions and 37 deletions

View File

@@ -45,6 +45,7 @@ async def ensure_workflow_run(
max_steps=x_max_steps_override,
request_id=context.request_id,
debug_session_id=block_run_request.debug_session_id,
code_gen=block_run_request.code_gen,
)
return workflow_run
@@ -62,7 +63,6 @@ async def execute_blocks(
user_id: str,
browser_session_id: str | None = None,
block_outputs: dict[str, t.Any] | None = None,
code_gen: bool | None = None,
) -> None:
"""
Runs one or more blocks of a workflow.
@@ -115,5 +115,4 @@ async def execute_blocks(
api_key=api_key,
block_labels=block_labels,
block_outputs=block_outputs,
code_gen=code_gen,
)