fix workflow_runs.code_gen to enforce code generate only for task v2 block run (#3597)
This commit is contained in:
@@ -626,7 +626,7 @@ class AgentFunction:
|
||||
not context
|
||||
or not context.root_workflow_run_id
|
||||
or not context.organization_id
|
||||
or context.published_workflow_script_id
|
||||
or not context.generate_script
|
||||
):
|
||||
return
|
||||
root_workflow_run_id = context.root_workflow_run_id
|
||||
|
||||
Reference in New Issue
Block a user